source: trunk/include/odin.h@ 785

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

Fix: fixes in WINE macros and dependencies

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