home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1997 May / Pcwk0597.iso / sybase / starbuck / h.z / _COMDEF.H next >
C/C++ Source or Header  |  1996-07-24  |  3KB  |  129 lines

  1. //
  2. //  _comdef.h    Common Macro Definitions
  3. //
  4. //  Copyright by WATCOM International Corp. 1988-1996.  All rights reserved.
  5. //
  6. #ifndef _COMDEF_H_INCLUDED
  7. #define _COMDEF_H_INCLUDED
  8.   #ifdef _WCNEAR
  9.     #error The macro _WCNEAR is reserved for use the runtime library.
  10.   #endif
  11.   #ifdef _WCFAR
  12.     #error The macro _WCFAR is reserved for use the runtime library.
  13.   #endif
  14.   #ifdef _WCHUGE
  15.     #error The macro _WCHUGE is reserved for use the runtime library.
  16.   #endif
  17.   #ifdef _WCI86NEAR
  18.     #error The macro _WCI86NEAR is reserved for use the runtime library.
  19.   #endif
  20.   #ifdef _WCI86FAR
  21.     #error The macro _WCI86FAR is reserved for use the runtime library.
  22.   #endif
  23.   #ifdef _WCI86HUGE
  24.     #error The macro _WCI86HUGE is reserved for use the runtime library.
  25.   #endif
  26.   #ifdef _WCINTERRUPT
  27.     #error The macro _WCINTERRUPT is reserved for use the runtime library.
  28.   #endif
  29.   #ifdef _WCUNALIGNED
  30.     #error The macro _WCUNALIGNED is reserved for use the runtime library.
  31.   #endif
  32.   #if defined(_M_IX86)
  33.     #define _WCNEAR __near
  34.     #define _WCFAR __far
  35.     #define _WCHUGE __huge
  36.     #define _WCINTERRUPT __interrupt
  37.     #define _WCUNALIGNED
  38.     #if defined(__386__)
  39.       #define _WCI86NEAR
  40.       #define _WCI86FAR
  41.       #define _WCI86HUGE
  42.     #else
  43.       #define _WCI86NEAR __near
  44.       #define _WCI86FAR __far
  45.       #define _WCI86HUGE __huge
  46.     #endif
  47.   #elif defined(__AXP__)
  48.     #define _WCNEAR
  49.     #define _WCFAR
  50.     #define _WCHUGE
  51.     #define _WCI86NEAR
  52.     #define _WCI86FAR
  53.     #define _WCI86HUGE
  54.     #define _WCINTERRUPT
  55.     #define _WCUNALIGNED __unaligned
  56.   #elif defined(__PPC__)
  57.     #define _WCNEAR
  58.     #define _WCFAR
  59.     #define _WCHUGE
  60.     #define _WCI86NEAR
  61.     #define _WCI86FAR
  62.     #define _WCI86HUGE
  63.     #define _WCINTERRUPT
  64.     #define _WCUNALIGNED __unaligned
  65.   #else
  66.     #define _WCNEAR
  67.     #define _WCFAR
  68.     #define _WCHUGE
  69.     #define _WCI86NEAR
  70.     #define _WCI86FAR
  71.     #define _WCI86HUGE
  72.     #define _WCINTERRUPT
  73.     #define _WCUNALIGNED
  74.   #endif
  75.   #if defined(__SW_BR)
  76.     #if defined(__NT__)
  77.       #define _WCRTLINK __declspec(dllimport)
  78.       #define _WMRTLINK __declspec(dllimport)
  79.       #define _WPRTLINK __declspec(dllimport)
  80.     #elif defined(__OS2__) && (defined(__386__) || defined(__PPC__))
  81.       #define _WCRTLINK
  82.       #define _WMRTLINK
  83.       #define _WPRTLINK
  84.     #else
  85.       #define _WCRTLINK
  86.       #define _WMRTLINK
  87.       #define _WPRTLINK
  88.     #endif
  89.   #else
  90.     #ifndef _WCRTLINK
  91.       #define _WCRTLINK
  92.     #endif
  93.     #ifndef _WMRTLINK
  94.       #define _WMRTLINK
  95.     #endif
  96.     #ifndef _WPRTLINK
  97.       #define _WPRTLINK
  98.     #endif
  99.   #endif
  100.   // control import modifier on intrinsic functions
  101.   #ifndef _WCIRTLINK
  102.     #if defined(__INLINE_FUNCTIONS__)
  103.       #define _WCIRTLINK
  104.     #else
  105.       #define _WCIRTLINK _WCRTLINK
  106.     #endif
  107.   #endif
  108.   #ifndef _WMIRTLINK
  109.     #if defined(__NO_MATH_OPS) || defined(__AXP__) || defined(__PPC__)
  110.       #define _WMIRTLINK _WMRTLINK
  111.     #else
  112.       #define _WMIRTLINK
  113.     #endif
  114.   #endif
  115.   #ifndef _WPIRTLINK
  116.     #define _WPIRTLINK _WPRTLINK
  117.   #endif
  118.   /* for MS compatibility */
  119.   #ifndef _CRTAPI1
  120.     #define _CRTAPI1
  121.   #endif
  122.   #ifndef _CRTAPI2
  123.     #define _CRTAPI2
  124.   #endif
  125.   #ifndef _CRTIMP
  126.     #define _CRTIMP _WCRTLINK
  127.   #endif
  128. #endif
  129.