2 * Simulator of microcontrollers (ddconfig.h)
4 * Copyright (C) 1999,99 Drotos Daniel, Talker Bt.
6 * To contact author send email to drdani@mazsola.iit.uni-miskolc.hu
10 /* This file is part of microcontroller simulator: ucsim.
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.
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.
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
28 #ifndef DDCONFIG_HEADER
29 #define DDCONFIG_HEADER
39 #undef HAVE_SYS_NDIR_H
42 #undef HAVE_SYS_SOCKET_H
43 #undef HAVE_WINSOCK2_H
54 #undef FD_NEED_TYPES_H
55 #undef FD_NEED_SELECT_H
56 #undef FD_NEED_WINSOCK2_H
78 #undef HAVE__VSNPRINTF
94 #undef SIZEOF_LONG_LONG
98 #define TYPE_UBYTE unsigned TYPE_BYTE
99 #define TYPE_UWORD unsigned TYPE_WORD
100 #define TYPE_UDWORD unsigned TYPE_DWORD
105 * find out the endianess of host machine
106 * in order to be able to make Mac OS X unified binaries
108 #if __BIG_ENDIAN__ || _BIG_ENDIAN
109 /* 1) trust the compiler */
110 # define WORDS_BIGENDIAN 1
111 #elif __LITTLE_ENDIAN__
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
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
124 /* 4) assume that host is a little endian machine */
132 #undef ACCEPT_SOCKLEN_T
138 /* End of ddconfig.h */