source: trunk/include/odin.h@ 5200

Last change on this file since 5200 was 5148, checked in by sandervl, 25 years ago

YD: header changes for compiling opera

File size: 1.8 KB
Line 
1/*
2 * ODIN - Build Environment Definition
3 *
4 * Copyright (C) 1999 Patrick Haller <phaller@gmx.net>
5 *
6 * ------------------------------------------------------------
7 * Note: Only compiler linkage definitions and similar stuff
8 * goes here. Nothing else.
9 * ------------------------------------------------------------
10 *
11 */
12
13
14#ifndef _ODIN_H_
15#define _ODIN_H_
16
17
18/***********************************
19 * Compiler Environment Definition *
20 ***********************************/
21
22#ifdef CDECL
23# undef CDECL
24#endif
25
26#ifdef EXPORT
27# undef EXPORT
28#endif
29
30#ifdef WIN32API
31# undef WIN32API
32#endif
33
34#ifdef SYSTEM
35# undef SYSTEM
36#endif
37
38#ifdef PASCAL
39# undef PASCAL
40#endif
41
42#ifdef UNALIGNED
43# undef UNALIGNED
44#endif
45
46
47/* ---------- WATCOM C ---------- */
48#ifdef __WATCOMC__
49 #define CDECL _cdecl
50 #define EXPORT _export
51 #define WIN32API __stdcall
52 #define WINAPI __stdcall
53 #define SYSTEM __stdcall
54 #define PASCAL __stdcall
55 #define UNALIGNED
56#else
57
58/* ---------- GCC/EMX ---------- */
59#ifdef __GNUC__
60 #define CDECL _cdecl
61 #define EXPORT _export
62 #define WIN32API __stdcall
63 #define WINAPI __stdcall
64 #define SYSTEM __stdcall
65 #define PASCAL __stdcall
66 #define UNALIGNED
67#else
68
69/* ---------- VAC ---------- */
70#if (defined(__IBMCPP__) || defined(__IBMC__))
71 #define CDECL __cdecl
72 #define EXPORT _Export
73 #define WIN32API __stdcall
74 #define WINAPI __stdcall
75 #define SYSTEM _System
76 #define PASCAL __stdcall
77 #define UNALIGNED
78 #define __inline__ inline
79
80#ifndef RC_INVOKED
81 #if (__IBMCPP__ == 300) || (__IBMC__ == 300)
82 #define NONAMELESSUNION
83 #endif
84#endif
85
86#ifndef RC_INVOKED
87 #include <builtin.h>
88#endif
89
90#else
91
92#ifndef RC_INVOKED
93/* ---------- ??? ---------- */
94#error No known compiler.
95#endif
96#endif
97#endif
98#endif
99
100
101
102#endif /* _ODIN_H_*/
103
Note: See TracBrowser for help on using the repository browser.