/* ------------------------------------------------------------------ */
/* JAVAOS2.H                                                          */
/* Common include for OS/2-dependent runtime and main routines        */
/* ------------------------------------------------------------------ */
/* Warning: Sun-Win32 make files do not have .H dependencies!!        */
/* ------------------------------------------------------------------ */
/* Copyright (c) IBM Corporation, 1995                                */

#ifndef _JAVAOS2__H_
#define _JAVAOS2__H_

#define INCL_DOS
#define INCL_DOSERRORS
#define INCL_DOSPROCESS
#define INCL_DOSDATETIME
#define INCL_DOSSEMAPHORES

#define TID OS2TID                 /* global rename in OS2 H's! */
#include <os2.h>
#undef TID                         /* and restore */

/* typedef unsigned long OS2TID; *//* OS/2's TID looks like this */

#define MAX_PATH 259               /* for now */
#define BADLONG (signed)0x80000000L/* "bad" long int value (error) */

extern int diag;                   /* general flag */

/* Next are process-called DLL initialization/termination routines   */
/* explicitly invoked by JavaI (independent from OS/2's mechanisms). */
extern int DllMain(HMODULE, ULONG);
#define DLL_PROCESS_ATTACH 1       /* Arg 2 when first loaded */
#define DLL_PROCESS_DETACH 0       /* Arg 2 just before free */
#define DLLINITTERM "DllMain"      /* name to look for */

#endif /* !_JAVAOS2_H_ */

