1
/* ACC -- Automatic Compiler Configuration
3
Copyright (C) 1996-2004 Markus Franz Xaver Johannes Oberhumer
6
This software is a copyrighted work licensed under the terms of
7
the GNU General Public License. Please consult the file "ACC_LICENSE"
10
Markus F.X.J. Oberhumer
11
<markus@oberhumer.com>
12
http://www.oberhumer.com/
16
#ifndef __ACC_INCI_H_INCLUDED
17
#define __ACC_INCI_H_INCLUDED 1
20
/*************************************************************************
21
// internal system includes
22
**************************************************************************/
24
#if (ACC_OS_TOS && (ACC_CC_PUREC || ACC_CC_TURBOC))
26
#elif (ACC_HAVE_WINDOWS_H)
27
# if 1 && !defined(WIN32_LEAN_AND_MEAN)
28
# define WIN32_LEAN_AND_MEAN 1
30
# if 1 && !defined(_WIN32_WINNT)
31
/* Restrict to a subset of Windows NT 4.0 header files */
32
# define _WIN32_WINNT 0x0400
35
# if (ACC_CC_BORLANDC || ACC_CC_TURBOC)
38
#elif (ACC_OS_DOS16 || ACC_OS_DOS32 || ACC_OS_WIN16)
42
# elif (ACC_CC_BORLANDC || ACC_CC_TURBOC)
45
# elif (ACC_OS_DOS32 && ACC_CC_GNUC) && defined(__DJGPP__)
46
# include <sys/exceptn.h>
47
# elif (ACC_CC_PACIFICC)
51
# elif (ACC_CC_WATCOMC)
61
/*************************************************************************
63
**************************************************************************/
65
#if (ACC_OS_DOS16 || ACC_OS_OS216 || ACC_OS_WIN16)
67
# define ACC_FP_OFF(x) FP_OFF(x)
68
# elif defined(_FP_OFF)
69
# define ACC_FP_OFF(x) _FP_OFF(x)
71
# define ACC_FP_OFF(x) (((const unsigned __far*)&(x))[0])
74
# define ACC_FP_SEG(x) FP_SEG(x)
75
# elif defined(_FP_SEG)
76
# define ACC_FP_SEG(x) _FP_SEG(x)
78
# define ACC_FP_SEG(x) (((const unsigned __far*)&(x))[1])
81
# define ACC_MK_FP(s,o) MK_FP(s,o)
82
# elif defined(_MK_FP)
83
# define ACC_MK_FP(s,o) _MK_FP(s,o)
85
# define ACC_MK_FP(s,o) ((void __far*)(((unsigned long)(s)<<16)+(unsigned)(o)))
91
# define ACC_FP_OFF(x) (((const unsigned __far*)&(x))[0])
92
# define ACC_FP_SEG(x) (((const unsigned __far*)&(x))[1])
93
# define ACC_MK_FP(s,o) ((void __far*)(((unsigned long)(s)<<16)+(unsigned)(o)))
98
#endif /* already included */