source: trunk/include/odin.h@ 17

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

Code cleanup #1 for build, mainly addresses linkage problems

File size: 879 bytes
RevLine 
[17]1/*
2 *
3 * ODIN - Build Environment Definition
4 *
5 */
6
7
8#ifndef _ODIN_H_
9#define _ODIN_H_
10
11
12/*
13 * Compiler Environment Definition
14 */
15
16/* ---------- WATCOM C ---------- */
17#ifdef __WATCOMC__
18 #define CDECL _cdecl
19 #define EXPORT _export
20 #define WIN32API __stdcall
21 #define SYSTEM __stdcall
22#else
23
24/* ---------- GCC/EMX ---------- */
25#ifdef __GNUC__
26 #define CDECL _cdecl
27 #define EXPORT _export
28 #define WIN32API __stdcall
29 #define SYSTEM __stdcall
30#else
31
32/* ---------- VAC ---------- */
33#if (defined(__IBMCPP__) || defined(__IBMC__))
34 #define CDECL __cdecl
35 #define EXPORT _Export
36 #define WIN32API __stdcall
37 #define SYSTEM _System
38 #define UNALIGNED
39#else
40
41/* ---------- ??? ---------- */
42#error No known compiler.
43#endif
44#endif
45#endif
46
47
48/* map WINE to ODIN */
49#define WINAPI WIN32API
50
51#include <builtin.h>
52
53
54#endif /* _ODIN_H_*/
55
Note: See TracBrowser for help on using the repository browser.