home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / tvos200.zip / CPL / OPSYS.H < prev    next >
C/C++ Source or Header  |  1995-03-02  |  1KB  |  55 lines

  1. /*
  2.  *    opsys.h:    Include the operating system headers
  3.  *
  4.  *    $Header: s:/prj/bpl/OPSYS.H_V 1.1 94/09/14 11:02:44 JAL Exp $
  5.  *
  6.  *    $Log:    OPSYS.H_V $
  7.  *    Revision 1.1  94/09/14    11:02:44  JAL
  8.  *    Initial revision
  9.  *
  10.  *    Revision 1.2  93/05/17    12:59:33  JAL
  11.  *    Changed OS/2 system include file logic to read right file when Borland C++/2
  12.  *    is used.
  13.  *
  14.  *    Revision 1.1  92/08/24    14:37:26  JAL
  15.  *    Initial revision
  16.  *
  17.  */
  18.  
  19. /*
  20.  *    Handle OS/2 header files for all OS/2 versions & compilers
  21.  */
  22. #ifdef    INCL_OS2
  23. #    if !defined(__cpl_opsys_h)
  24. #        define __cpl_opsys_h
  25.  
  26.         /*
  27.          *    For OS/2, we include the PM headers ONLY if requested specifically.
  28.          */
  29. #        if !defined(INCL_PM) && !defined(INCL_NOPMAPI)
  30. #        define INCL_NOPMAPI
  31. #        endif
  32.  
  33. #        ifdef  __32BITS__
  34. #            ifdef __ICC__
  35. #                include <os2.32/os2.h>
  36. #            elif defined(__TURBOC__) && defined(__OS2__)
  37. #                include <os2.h>
  38. #            elif defined(__GNUC__) && defined(__OS2__)
  39. #                include <os2.h>
  40. #            elif defined(__WATCOMC__) && defined(__OS2__)
  41. #                include <os2.h>
  42. #            else
  43. #                error "Unknown 32-bits compiler!"
  44. #            endif
  45.  
  46. #        else
  47. #            include <os2/os2.h>
  48. #        endif
  49.  
  50. #    endif
  51.  
  52. #endif
  53.  
  54.  
  55.