home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ool_main.zip / ool / include / xinclude.h < prev    next >
C/C++ Source or Header  |  1998-05-02  |  3KB  |  115 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.  
  31.    #if !defined(__IBMCPP__) && !defined(__WATCOMC__)
  32.       #include <cpp/std/typeinfo.h>
  33.    #endif
  34.  
  35.    #include "xmemchk.h"
  36.    #ifndef DB_RAISED
  37.       #define DB_RAISED 0x400
  38.    #endif
  39.    #ifndef DB_DEPRESSED
  40.       #define DB_DEPRESSED 0x800
  41.    #endif
  42.  
  43.    //disable this include if you work with EMX *WITH* IBM header files
  44.    #include <rexxsaa.h>
  45.  
  46.    //this structure is missing in EMX 0.9c, if the compiler
  47.    //tells you that this stucture is already defined, delete
  48.    //this definiton including <typedef PRINTDEST *PPRINTDEST;>
  49.  
  50.    #if !defined( __IBMCPP__ ) & !defined( __WATCOMC__ )
  51.       #include <typeinfo>
  52.       //disable this definition if you use EMX *WITH* IBM header files
  53.       typedef struct _PRINTDEST
  54.       {
  55.          ULONG        cb;
  56.          LONG         lType;
  57.          PSZ          pszToken;
  58.          LONG         lCount;
  59.          PDEVOPENDATA pdopData;
  60.          ULONG        fl;
  61.          PSZ          pszPrinter;
  62.       } PRINTDEST;
  63.       typedef PRINTDEST *PPRINTDEST;
  64.  
  65.    typedef  PSZ       APSZ[1];
  66.    typedef  APSZ *PAPSZ;          /* papsz */
  67.  
  68.    #endif
  69.  
  70.    #define OOL_ATOMHANDLE    ATOM
  71.    #define OOL_BITMAPHANDLE  HBITMAP
  72.    #define OOL_POINTERHANDLE HPOINTER
  73.    #define OOL_ICONHANDLE    HPOINTER
  74.    #define OOL_WINDOWHANDLE  HWND
  75.    #define USER_OK           DID_OK
  76.    #define USER_CANCEL       DID_CANCEL
  77. #endif
  78.  
  79.  
  80. #define X_ERR -1
  81. //#define X_OK  0
  82.  
  83. #ifdef _DEBUG_
  84.   #include "assert.h"
  85.   #define X_ASSERT(x) assert(x)
  86. #else
  87.   #define X_ASSERT(x)
  88. #endif
  89.  
  90. #ifndef ABSTRACT
  91.   #define ABSTRACT = 0
  92. #endif
  93.  
  94. #ifndef XSIZE_T
  95.   #define XSIZE_T unsigned long int
  96. #endif
  97.  
  98.  
  99.  
  100. #endif
  101.  
  102.  
  103. #ifndef _export_
  104. #ifdef __IBMCPP__                        //required export definition _Export
  105.   #define _export_ _Export
  106. #elif defined( __WATCOMC__ )
  107.   #define _export_ __export
  108. #else
  109.   #define _export_
  110. #endif
  111.  
  112. #if (defined (__IBMCPP__) && (__IBMCPP__ == 300))
  113.   #pragma hdrstop
  114. #endif
  115. #endif