home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional / OS2PRO194.ISO / os2 / sysutils / msshell / proto.h < prev    next >
C/C++ Source or Header  |  1992-06-20  |  688b  |  47 lines

  1. /*
  2.  * Prototype definitions for Standard and Non-standard compilers
  3.  */
  4.  
  5. #ifndef _PROTO
  6.  
  7. #define _NEAR
  8. #define _CDECL
  9. #define _FAR_
  10. #define _LOADDS_
  11.  
  12. #ifdef MSDOS
  13.  
  14. #  if defined(_DLL) && !defined(_MT)
  15. #    error Cannot define _DLL without _MT
  16. #  endif
  17.  
  18. #  ifdef _DLL
  19. #    undef _LOADDS_
  20. #    define _LOADDS_    _loadds
  21. #  endif
  22.  
  23. #  ifdef _MT
  24. #    undef _FAR_
  25. #    define _FAR_    _far
  26. #  endif
  27.  
  28. #  ifndef __STDC__
  29. #    define __STDC__    1
  30. #  endif
  31.  
  32. #  undef _CDECL
  33. #  define _CDECL    cdecl
  34.  
  35. #  undef _NEAR
  36. #  define _NEAR        near
  37. #endif
  38.  
  39. #ifdef __STDC__
  40. #  define _PROTO(p)    p
  41. #else
  42. #  define _PROTO(p)    ()
  43. #  undef  const
  44. #  undef  volatile
  45. #endif
  46. #endif
  47.