Line | |
---|
1 | #ifndef CONFIG_H
|
---|
2 | #define CONFIG_H
|
---|
3 |
|
---|
4 | #define _GNU_SOURCE
|
---|
5 |
|
---|
6 | #include "conf.h"
|
---|
7 |
|
---|
8 |
|
---|
9 | #ifndef WITH_SOPHYA
|
---|
10 | #define NO_SOPHYA
|
---|
11 |
|
---|
12 | #ifdef HAVE_STDINT_H
|
---|
13 | #include <stdint.h>
|
---|
14 | #define int_4 int4_t
|
---|
15 | #define int_8 int8_t
|
---|
16 | #define uint_8 uint8_t
|
---|
17 | #else
|
---|
18 | #if SIZEOF_SHORT == 4
|
---|
19 | #define int_4 short int
|
---|
20 | #elif SIZEOF_INT == 4
|
---|
21 | #define int_4 int
|
---|
22 | #else
|
---|
23 | #define int_4 long
|
---|
24 | #endif
|
---|
25 |
|
---|
26 | #if SIZEOF_LONG == 8
|
---|
27 | #define int_8 long
|
---|
28 | #define uint_8 unsigned long
|
---|
29 | #elif SIZEOF_LONG_LONG == 8
|
---|
30 | #define int_8 long long
|
---|
31 | #define uint_8 unsigned long long
|
---|
32 | #else
|
---|
33 | #error no 8-byte long int...
|
---|
34 | #endif
|
---|
35 | #endif
|
---|
36 | #endif
|
---|
37 |
|
---|
38 | #endif
|
---|
39 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.