Line | |
---|
1 | #ifndef CONFIG_H
|
---|
2 | #define CONFIG_H
|
---|
3 |
|
---|
4 | #define _GNU_SOURCE
|
---|
5 |
|
---|
6 | // mostly because of the archaic IRIX CC compiler
|
---|
7 | namespace std{}
|
---|
8 | using namespace std;
|
---|
9 |
|
---|
10 |
|
---|
11 | #include "conf.h"
|
---|
12 |
|
---|
13 |
|
---|
14 | #ifndef WITH_SOPHYA
|
---|
15 | #define NO_SOPHYA
|
---|
16 |
|
---|
17 | #ifdef HAVE_STDINT_H
|
---|
18 | #include <stdint.h>
|
---|
19 | #define int_4 int4_t
|
---|
20 | #define int_8 int8_t
|
---|
21 | #define uint_8 uint8_t
|
---|
22 | #else
|
---|
23 | #if SIZEOF_SHORT == 4
|
---|
24 | #define int_4 short int
|
---|
25 | #elif SIZEOF_INT == 4
|
---|
26 | #define int_4 int
|
---|
27 | #else
|
---|
28 | #define int_4 long
|
---|
29 | #endif
|
---|
30 |
|
---|
31 | #if SIZEOF_LONG == 8
|
---|
32 | #define int_8 long
|
---|
33 | #define uint_8 unsigned long
|
---|
34 | #elif SIZEOF_LONG_LONG == 8
|
---|
35 | #define int_8 long long
|
---|
36 | #define uint_8 unsigned long long
|
---|
37 | #else
|
---|
38 | #error no 8-byte long int...
|
---|
39 | #endif
|
---|
40 | #endif
|
---|
41 | #endif
|
---|
42 |
|
---|
43 | #ifdef __SGICC__
|
---|
44 | namespace std { }
|
---|
45 | using namespace std;
|
---|
46 | #endif
|
---|
47 |
|
---|
48 | #endif
|
---|
49 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.