Imported Upstream version 2.9.0
[debian/cc1111] / sim / ucsim / ddconfig_in.h
1 /*
2  * Simulator of microcontrollers (ddconfig.h)
3  *
4  * Copyright (C) 1999,99 Drotos Daniel, Talker Bt.
5  *
6  * To contact author send email to drdani@mazsola.iit.uni-miskolc.hu
7  *
8  */
9
10 /* This file is part of microcontroller simulator: ucsim.
11
12 UCSIM is free software; you can redistribute it and/or modify
13 it under the terms of the GNU General Public License as published by
14 the Free Software Foundation; either version 2 of the License, or
15 (at your option) any later version.
16
17 UCSIM is distributed in the hope that it will be useful,
18 but WITHOUT ANY WARRANTY; without even the implied warranty of
19 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20 GNU General Public License for more details.
21
22 You should have received a copy of the GNU General Public License
23 along with UCSIM; see the file COPYING.  If not, write to the Free
24 Software Foundation, 59 Temple Place - Suite 330, Boston, MA
25 02111-1307, USA. */
26 /*@1@*/
27
28 #ifndef DDCONFIG_HEADER
29 #define DDCONFIG_HEADER
30
31 #define DD_TRUE  1
32 #define DD_FALSE 0
33 #define NIL     0
34
35 #undef STDC_HEADERS
36 #undef HAVE_GETOPT_H
37 #undef HAVE_UNISTD_H
38 #undef HAVE_DIRENT_H
39 #undef HAVE_SYS_NDIR_H
40 #undef HAVE_SYS_DIR_H
41 #undef HAVE_NDIR_H
42 #undef HAVE_SYS_SOCKET_H
43 #undef HAVE_WINSOCK2_H
44 #undef HAVE_DLFCN_H
45 #undef HAVE_CURSES_H
46 #undef HAVE_TERMIOS_H
47
48 #undef SOCKET_AVAIL
49 #undef SOCKLEN_T
50 #undef UCSOCKET_T
51 #undef HEADER_SOCKET
52
53 #undef FD_NEED_TIME_H
54 #undef FD_NEED_TYPES_H
55 #undef FD_NEED_SELECT_H
56 #undef FD_NEED_WINSOCK2_H
57 #undef HEADER_FD
58 #undef FD_HEADER_OK
59
60 #undef SCANF_A
61 #undef GNU_GETCWD
62
63 #undef HAVE_STRLEN
64 #undef HAVE_STRCPY
65 #undef HAVE_STRCAT
66 #undef HAVE_STRSTR
67 #undef HAVE_STRCMP
68 #undef HAVE_STRERROR
69 #undef HAVE_STRTOK
70 #undef HAVE_STRDUP
71 #undef HAVE_STRCHR
72
73 #undef HAVE_MEMCPY
74
75 #undef HAVE_VPRINTF
76 #undef HAVE_DOPRNT
77 #undef HAVE_VSNPRINTF
78 #undef HAVE__VSNPRINTF
79 #undef HAVE_VASPRINTF
80
81 #undef HAVE_GETLINE
82 #undef HAVE_GETDELIM
83 #undef HAVE_FGETS
84
85 #undef HAVE_YYLEX
86 #undef HAVE_FLEX
87 #undef YYTEXT_POINTER
88
89 #undef RETSIGTYPE
90 #undef SIZEOF_CHAR
91 #undef SIZEOF_SHORT
92 #undef SIZEOF_INT
93 #undef SIZEOF_LONG
94 #undef SIZEOF_LONG_LONG
95 #undef TYPE_BYTE
96 #undef TYPE_WORD
97 #undef TYPE_DWORD
98 #define TYPE_UBYTE unsigned TYPE_BYTE
99 #define TYPE_UWORD unsigned TYPE_WORD
100 #define TYPE_UDWORD unsigned TYPE_DWORD
101 #undef _M_
102 #undef _A_
103
104 /*
105  * find out the endianess of host machine
106  * in order to be able to make Mac OS X unified binaries
107  */
108 #if __BIG_ENDIAN__ || _BIG_ENDIAN
109 /* 1) trust the compiler */
110 # define WORDS_BIGENDIAN 1
111 #elif __LITTLE_ENDIAN__
112 /* do nothing */
113 #elif (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
114 /* 2) trust the header files */
115 # if BYTE_ORDER == BIG_ENDIAN 
116 #   define WORDS_BIGENDIAN 1
117 # endif
118 #else 
119 /* 3) trust the configure; this actually doesn't work for unified Mac OS X binaries :-( */
120 # undef BUILD_WORDS_BIGENDIAN
121 # if (defined BUILD_WORDS_BIGENDIAN && BUILD_WORDS_BIGENDIAN)
122 #   define WORDS_BIGENDIAN  1
123 # endif
124 /* 4) assume that host is a little endian machine */
125 #endif
126
127 #undef VERSIONSTR
128 #undef VERSIONHI
129 #undef VERSIONLO
130 #undef VERSIONP
131
132 #undef ACCEPT_SOCKLEN_T
133
134 #undef STATISTIC
135
136 #endif
137
138 /* End of ddconfig.h */