source: trunk/include/odin.h@ 689

Last change on this file since 689 was 488, checked in by phaller, 26 years ago

Add: added ODINWRAP support plus few enhancements to VERSION

File size: 1.3 KB
Line 
1/* $Id: odin.h,v 1.5 1999-08-12 23:33:36 phaller Exp $ */
2/*
3 *
4 * ODIN - Build Environment Definition
5 *
6 */
7
8
9#ifndef _ODIN_H_
10#define _ODIN_H_
11
12
13/*
14 * Compiler Environment Definition
15 */
16
17#ifdef CDECL
18# undef CDECL
19#endif
20
21#ifdef EXPORT
22# undef EXPORT
23#endif
24
25#ifdef WIN32API
26# undef WIN32API
27#endif
28
29#ifdef SYSTEM
30# undef SYSTEM
31#endif
32
33#ifdef PASCAL
34# undef PASCAL
35#endif
36
37#ifdef UNALIGNED
38# undef UNALIGNED
39#endif
40
41
42/* ---------- WATCOM C ---------- */
43#ifdef __WATCOMC__
44 #define CDECL _cdecl
45 #define EXPORT _export
46 #define WIN32API __stdcall
47 #define WINAPI __stdcall
48 #define SYSTEM __stdcall
49 #define PASCAL _Pascal
50 #define UNALIGNED
51#else
52
53/* ---------- GCC/EMX ---------- */
54#ifdef __GNUC__
55 #define CDECL _cdecl
56 #define EXPORT _export
57 #define WIN32API __stdcall
58 #define WINAPI __stdcall
59 #define SYSTEM __stdcall
60 #define PASCAL _Pascal
61 #define UNALIGNED
62#else
63
64/* ---------- VAC ---------- */
65#if (defined(__IBMCPP__) || defined(__IBMC__))
66 #define CDECL __cdecl
67 #define EXPORT _Export
68 #define WIN32API __stdcall
69 #define WINAPI __stdcall
70 #define SYSTEM _System
71 #define PASCAL _Pascal
72 #define UNALIGNED
73#else
74
75/* ---------- ??? ---------- */
76#error No known compiler.
77#endif
78#endif
79#endif
80
81
82#include <builtin.h>
83
84
85#endif /* _ODIN_H_*/
86
Note: See TracBrowser for help on using the repository browser.