Changeset 6102 for trunk/include/odin.h
- Timestamp:
- Jun 26, 2001, 12:55:07 AM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/odin.h
r5925 r6102 53 53 #define SYSTEM _System 54 54 #define PASCAL __stdcall 55 #define INLINE inline /* is this allowed for C too? */ 55 56 #define UNALIGNED 57 #define __attribute__(x) 56 58 57 59 //MN: For some strange reason Watcom doesn't define these for C++! … … 66 68 /* ---------- GCC/EMX ---------- */ 67 69 #ifdef __GNUC__ 70 #if defined(__GNUC__) && (__GNUC__ <= 2) && (__GNUC_MINOR__ < 7) 71 #error You need gcc >= 2.7 to build Odin32 72 #endif 73 #if !defined(__stdcall__) /* this is also defined in windef.h if !defined(WIN32OS2) */ 74 #define __stdcall __attribute__((__stdcall__)) 75 #define __cdecl __attribute__((__cdecl__)) 76 #endif 68 77 #define CDECL _cdecl 69 78 #define EXPORT _export … … 72 81 #define SYSTEM __stdcall 73 82 #define PASCAL __stdcall 83 #define INLINE __inline__ 74 84 #define UNALIGNED 75 85 #define NONAMELESSUNION … … 79 89 /* ---------- VAC ---------- */ 80 90 #if (defined(__IBMCPP__) || defined(__IBMC__)) 91 81 92 #define CDECL __cdecl 82 93 #define EXPORT _Export … … 86 97 #define PASCAL __stdcall 87 98 #define UNALIGNED 88 #define __inline__ inline 99 #ifndef __cplusplus 100 #define INLINE _Inline 101 #define inline INLINE 102 #else 103 #define INLINE inline 104 #endif 105 #define __inline__ INLINE 106 #define __attribute__(x) 107 89 108 90 109 #ifndef RC_INVOKED … … 107 126 #ifdef RC_INVOKED 108 127 //SvL: wrc chokes on calling conventions.... 109 #define CDECL 110 #define EXPORT 111 #define WIN32API 112 #define WINAPI 113 #define CALLBACK 114 #define SYSTEM 115 #define PASCAL 128 #define CDECL 129 #define EXPORT 130 #define WIN32API 131 #define WINAPI 132 #define CALLBACK 133 #define SYSTEM 134 #define PASCAL 116 135 #define UNALIGNED 117 136 #define __cdecl 118 137 #define _System 119 #define __inline__ 138 #define __inline__ 139 #define INLINE 120 140 #else 121 141 /* ---------- ??? ---------- */
Note:
See TracChangeset
for help on using the changeset viewer.