home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ool.zip / OOL / include / xinclude.h < prev    next >
C/C++ Source or Header  |  1997-04-03  |  2KB  |  96 lines

  1. #ifndef __OOL_INCLUDES_H__
  2. #define __OOL_INCLUDES_H__
  3.  
  4.  
  5. #define OOL_FOR_OS2_X86                  //make the library for OS/2 intel-version
  6.  
  7.  
  8. #ifdef OOL_FOR_OS2_X86
  9.    #define INCL_PM
  10.    #define INCL_GPI
  11.    #define INCL_WINSTDDRAG
  12.    #define INCL_DOSMODULEMGR
  13.    #define INCL_WINCLIPBOARD
  14.    #define INCL_WINWORKPLACE
  15.    #define INCL_DOSQUEUES
  16.    #define INCL_DOSPROCESS
  17.    #define DOS_INCLDATETIME
  18.    #define INCL_DEV
  19.    #define INCL_DOS
  20.    #define INCL_DOSERRORS
  21.     #define INCL_RXSUBCOM
  22.     #define INCL_RXSHV
  23.     #define INCL_RXFUNC
  24.     #define INCL_SPL
  25.     #define INCL_SPLDOSPRINT
  26.     #define INCL_SPLERRORS
  27.     #define INCL_DOSNLS
  28.  
  29.    #include <os2.h>
  30.     #include <rexxsaa.h>
  31.  
  32.    //this structure is missing in EMX 0.9c, if the compiler
  33.    //tells you that this stucture is already defined, delete
  34.    //this definiton including <typedef PRINTDEST *PPRINTDEST;>
  35.  
  36.     #if !defined( __IBMCPP__ ) & !defined( __WATCOMC__ )
  37.         #include <typeinfo>
  38. /*
  39.        typedef struct _PRINTDEST     
  40.        {
  41.           ULONG        cb;
  42.           LONG         lType;
  43.           PSZ          pszToken;
  44.           LONG         lCount;
  45.           PDEVOPENDATA pdopData;
  46.           ULONG        fl;
  47.           PSZ          pszPrinter;
  48.        } PRINTDEST;
  49.        typedef PRINTDEST *PPRINTDEST;
  50. */
  51.     #endif
  52.  
  53.    #define OOL_BITMAPHANDLE  HBITMAP
  54.    #define OOL_POINTERHANDLE HPOINTER
  55.    #define OOL_ICONHANDLE    HPOINTER
  56.    #define OOL_WINDOWHANDLE  HWND
  57.    #define USER_OK           DID_OK
  58.    #define USER_CANCEL       DID_CANCEL
  59. #endif
  60.  
  61.  
  62. #define X_ERR -1
  63. #define X_OK  0
  64.  
  65. #ifdef _DEBUG_
  66.   #include "assert.h"
  67.   #define X_ASSERT(x) assert(x)
  68. #else
  69.   #define X_ASSERT(x)
  70. #endif
  71.  
  72. #ifndef ABSTRACT
  73.   #define ABSTRACT = 0
  74. #endif
  75.  
  76. #ifndef XSIZE_T
  77.   #define XSIZE_T unsigned long int
  78. #endif
  79.  
  80.  
  81.  
  82. #ifdef __IBMCPP__                        //required export definition _Export
  83.   #define _export_
  84. #elif defined( __WATCOMC__ )
  85.   #define _export_ __export
  86. #else
  87.   #define _export_
  88. #endif
  89.  
  90. #if (defined (__IBMCPP__) && (__IBMCPP__ == 300))
  91.   #pragma hdrstop
  92. #endif
  93.  
  94. #endif
  95.  
  96.