source:
Sophya/trunk/ArchTOIPipe/config.h@
2281
Last change on this file since 2281 was 2223, checked in by , 23 years ago | |
---|---|
File size: 888 bytes |
Rev | Line | |
---|---|---|
[1365] | 1 | #ifndef CONFIG_H |
2 | #define CONFIG_H | |
3 | ||
4 | #define _GNU_SOURCE | |
5 | ||
[1764] | 6 | // mostly because of the archaic IRIX CC compiler |
7 | namespace std{} | |
8 | using namespace std; | |
9 | ||
10 | ||
[1365] | 11 | #include "conf.h" |
12 | ||
13 | ||
14 | #ifndef WITH_SOPHYA | |
15 | #define NO_SOPHYA | |
[1663] | 16 | |
17 | #ifdef HAVE_STDINT_H | |
18 | #include <stdint.h> | |
19 | #define int_4 int4_t | |
[2223] | 20 | #define uint_4 uint4_t |
[1663] | 21 | #define int_8 int8_t |
22 | #define uint_8 uint8_t | |
23 | #else | |
[1365] | 24 | #if SIZEOF_SHORT == 4 |
25 | #define int_4 short int | |
[2223] | 26 | #define uint_4 unsigned short int |
[1365] | 27 | #elif SIZEOF_INT == 4 |
28 | #define int_4 int | |
[2223] | 29 | #define uint_4 unsigned int |
[1365] | 30 | #else |
31 | #define int_4 long | |
[2223] | 32 | #define uint_4 unsigned long |
[1365] | 33 | #endif |
[1477] | 34 | |
35 | #if SIZEOF_LONG == 8 | |
36 | #define int_8 long | |
[1663] | 37 | #define uint_8 unsigned long |
38 | #elif SIZEOF_LONG_LONG == 8 | |
39 | #define int_8 long long | |
40 | #define uint_8 unsigned long long | |
[1477] | 41 | #else |
[1663] | 42 | #error no 8-byte long int... |
[1365] | 43 | #endif |
[2126] | 44 | |
45 | #define r_8 double | |
46 | ||
[1477] | 47 | #endif |
[1663] | 48 | #endif |
[1365] | 49 | |
[1764] | 50 | #ifdef __SGICC__ |
51 | namespace std { } | |
52 | using namespace std; | |
[1365] | 53 | #endif |
[1663] | 54 | |
[1764] | 55 | #endif |
56 |
Note:
See TracBrowser
for help on using the repository browser.