fixed endif
[fw/sdcc] / sdccconf_in.h
1 /*
2  */
3
4 #ifndef SDCCCONF_HEADER
5 #define SDCCCONF_HEADER
6
7
8 #undef SDCC_VERSION_HI
9 #undef SDCC_VERSION_LO
10 #undef SDCC_VERSION_P
11 #undef SDCC_VERSION_STR
12
13 #undef DIR_SEPARATOR_STRING
14 #undef DIR_SEPARATOR_CHAR
15
16 #undef PREFIX
17 #undef EXEC_PREFIX
18 #undef BINDIR
19 #undef DATADIR
20
21 #undef INCLUDE_DIR_SUFFIX
22 #undef LIB_DIR_SUFFIX
23
24 #undef BIN2DATA_DIR
25 #undef PREFIX2BIN_DIR
26 #undef PREFIX2DATA_DIR
27
28 /* environment variables */
29 #undef SDCC_DIR_NAME
30 #undef SDCC_INCLUDE_NAME
31 #undef SDCC_LIB_NAME
32
33 /* standard libraries */
34 #undef STD_LIB
35 #undef STD_INT_LIB
36 #undef STD_LONG_LIB
37 #undef STD_FP_LIB
38 #undef STD_DS390_LIB
39 #undef STD_DS400_LIB
40 #undef STD_XA51_LIB
41
42 #undef HAVE_STRERROR
43 #undef HAVE_VSNPRINTF
44 #undef HAVE_SNPRINTF
45 #undef HAVE_VSPRINTF
46 #undef HAVE_MKSTEMP
47
48 #undef RETSIGTYPE
49
50 #undef TYPE_BYTE
51 #undef TYPE_WORD
52 #undef TYPE_DWORD
53 #undef TYPE_UBYTE
54 #undef TYPE_UWORD
55 #undef TYPE_UDWORD
56
57 /* find out the endianess of host machine */
58 #if __BIG_ENDIAN__ || _BIG_ENDIAN
59 /* 1) trust the compiler */
60 # define WORDS_BIGENDIAN 1
61 #elif __LITTLE_ENDIAN__
62 /* just in case ... */
63 #undef WORDS_BIGENDIAN
64 #elif (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
65 /* 2) trust the header files */
66 # if BYTE_ORDER == BIG_ENDIAN 
67 #   define WORDS_BIGENDIAN 1
68 # endif
69 #else 
70 /* 3) assume that host machine has the same endianess as the build machine */
71 # undef BUILD_WORDS_BIGENDIAN
72 # if (defined BUILD_WORDS_BIGENDIAN && BUILD_WORDS_BIGENDIAN)
73 #   define WORDS_BIGENDIAN  1
74 # endif
75 /* 4) assume that host is a little endian machine */
76 #endif
77
78 #undef OPT_DISABLE_MCS51
79 #undef OPT_DISABLE_GBZ80
80 #undef OPT_DISABLE_Z80
81 #undef OPT_DISABLE_AVR
82 #undef OPT_DISABLE_DS390
83 #undef OPT_DISABLE_DS400
84 #undef OPT_DISABLE_TININative
85 #undef OPT_DISABLE_PIC
86 #undef OPT_DISABLE_PIC16
87 #undef OPT_DISABLE_XA51
88 #undef OPT_DISABLE_HC08
89
90 #undef OPT_ENABLE_LIBGC
91
92 #endif
93
94 /* End of config.h */