Subversion Repositories QNX 8.QNX8 IFS tool

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
26 pmbaty 1
/* ACC -- Automatic Compiler Configuration
2
 
3
   Copyright (C) 1996-2004 Markus Franz Xaver Johannes Oberhumer
4
   All Rights Reserved.
5
 
6
   This software is a copyrighted work licensed under the terms of
7
   the GNU General Public License. Please consult the file "ACC_LICENSE"
8
   for details.
9
 
10
   Markus F.X.J. Oberhumer
11
   <markus@oberhumer.com>
12
   http://www.oberhumer.com/
13
 */
14
 
15
 
16
#ifndef __ACC_INCI_H_INCLUDED
17
#define __ACC_INCI_H_INCLUDED 1
18
 
19
 
20
/*************************************************************************
21
// internal system includes
22
**************************************************************************/
23
 
24
#if (ACC_OS_TOS && (ACC_CC_PUREC || ACC_CC_TURBOC))
25
#  include <tos.h>
26
#elif (ACC_HAVE_WINDOWS_H)
27
#  if 1 && !defined(WIN32_LEAN_AND_MEAN)
28
#    define WIN32_LEAN_AND_MEAN 1
29
#  endif
30
#  if 1 && !defined(_WIN32_WINNT)
31
     /* Restrict to a subset of Windows NT 4.0 header files */
32
#    define _WIN32_WINNT 0x0400
33
#  endif
34
#  include <windows.h>
35
#  if (ACC_CC_BORLANDC || ACC_CC_TURBOC)
36
#    include <dir.h>
37
#  endif
38
#elif (ACC_OS_DOS16 || ACC_OS_DOS32 || ACC_OS_WIN16)
39
#  if (ACC_CC_AZTECC)
40
#    include <model.h>
41
#    include <stat.h>
42
#  elif (ACC_CC_BORLANDC || ACC_CC_TURBOC)
43
#    include <alloc.h>
44
#    include <dir.h>
45
#  elif (ACC_OS_DOS32 && ACC_CC_GNUC) && defined(__DJGPP__)
46
#    include <sys/exceptn.h>
47
#  elif (ACC_CC_PACIFICC)
48
#    include <unixio.h>
49
#    include <stat.h>
50
#    include <sys.h>
51
#  elif (ACC_CC_WATCOMC)
52
#    include <i86.h>
53
#  endif
54
#elif (ACC_OS_OS216)
55
#  if (ACC_CC_WATCOMC)
56
#    include <i86.h>
57
#  endif
58
#endif
59
 
60
 
61
/*************************************************************************
62
//
63
**************************************************************************/
64
 
65
#if (ACC_OS_DOS16 || ACC_OS_OS216 || ACC_OS_WIN16)
66
#  if defined(FP_OFF)
67
#    define ACC_FP_OFF(x)   FP_OFF(x)
68
#  elif defined(_FP_OFF)
69
#    define ACC_FP_OFF(x)   _FP_OFF(x)
70
#  else
71
#    define ACC_FP_OFF(x)   (((const unsigned __far*)&(x))[0])
72
#  endif
73
#  if defined(FP_SEG)
74
#    define ACC_FP_SEG(x)   FP_SEG(x)
75
#  elif defined(_FP_SEG)
76
#    define ACC_FP_SEG(x)   _FP_SEG(x)
77
#  else
78
#    define ACC_FP_SEG(x)   (((const unsigned __far*)&(x))[1])
79
#  endif
80
#  if defined(MK_FP)
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)
84
#  else
85
#    define ACC_MK_FP(s,o)  ((void __far*)(((unsigned long)(s)<<16)+(unsigned)(o)))
86
#  endif
87
#  if 0
88
#    undef ACC_FP_OFF
89
#    undef ACC_FP_SEG
90
#    undef ACC_MK_FP
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)))
94
#  endif
95
#endif
96
 
97
 
98
#endif /* already included */
99
 
100
 
101
/*
102
vi:ts=4:et
103
*/