home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1997 May / Pcwk0597.iso / sybase / starbuck / hpp.z / WDECL.HPP < prev    next >
C/C++ Source or Header  |  1996-10-18  |  2KB  |  84 lines

  1.  
  2. #ifndef _WDECL_HPP_INCLUDED
  3. #define _WDECL_HPP_INCLUDED
  4.  
  5. #ifndef _WNO_PRAGMA_PUSH
  6. #pragma pack(push,8);
  7. #pragma enum int;
  8. #endif
  9.  
  10. #if defined( _WIN32 ) && !defined( WIN32 )
  11. #define WIN32
  12. #endif
  13.  
  14. #if defined( WIN32 ) && !defined( _WIN32 )
  15. #define _WIN32
  16. #endif
  17.  
  18. #ifndef _STDDEF_H_INCLUDED
  19. #  include <stddef.h>
  20. #endif
  21.  
  22. #define WDLLIMPORT __declspec(dllimport) __stdcall
  23. #define WDLLEXPORT __declspec(dllexport) __stdcall
  24.  
  25. //
  26. // Model/linking information
  27. //
  28.  
  29. #define WCMDEF                   __stdcall
  30. #pragma aux (WCMDEF) WCMRETURNFLOAT value struct float;
  31. #define WCMRETURNSFLOAT __pragma("WCMRETURNFLOAT")
  32.  
  33. #define WCMDECLSPEC_IMPORT       //__declspec(dllimport)
  34. #define WCMDECLSPEC_EXPORT       __declspec(dllexport)
  35.  
  36. #ifdef __BUILDING_WCM_DLL__
  37. #define WCMDECLSPEC              WCMDECLSPEC_EXPORT
  38. #else
  39. #define WCMDECLSPEC              WCMDECLSPEC_IMPORT
  40. #endif
  41.  
  42. #define WCMCLASS                 WCMDECLSPEC WCMDEF
  43.  
  44. #define _WEXPORT
  45. #define WFAR
  46.  
  47. #define WCLASSDEF WCMDECLSPEC WCMDEF
  48.  
  49. #ifdef __BUILDING_WCM_DLL__
  50. #define WEXPORT __export __stdcall
  51. #else
  52. #define WEXPORT __stdcall
  53. #endif
  54.  
  55. typedef short           WShort;
  56. typedef unsigned short  WUShort;
  57. typedef int             WInt;
  58. typedef unsigned int    WUInt;
  59. typedef long            WLong;
  60. typedef unsigned long   WULong;
  61. typedef unsigned long   WDWord;
  62. typedef bool            WBool;
  63. typedef unsigned char   WByte;
  64. typedef char            WChar;
  65. typedef unsigned char   WUChar;
  66. typedef double          WDouble;
  67. typedef float           WFloat;
  68.  
  69. #if defined( TRUE )
  70. #undef TRUE
  71. #endif
  72. #if defined( FALSE )
  73. #undef FALSE
  74. #endif
  75. #define TRUE  (true)
  76. #define FALSE (false)
  77.  
  78. #ifndef _WNO_PRAGMA_PUSH
  79. #pragma enum pop;
  80. #pragma pack(pop);
  81. #endif
  82.  
  83. #endif // _WDECL_HPP_INCLUDED
  84.