| 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 uint_4 uint4_t
|
|---|
| 21 | #define int_8 int8_t
|
|---|
| 22 | #define uint_8 uint8_t
|
|---|
| 23 | #else
|
|---|
| 24 | #if SIZEOF_SHORT == 4
|
|---|
| 25 | #define int_4 short int
|
|---|
| 26 | #define uint_4 unsigned short int
|
|---|
| 27 | #elif SIZEOF_INT == 4
|
|---|
| 28 | #define int_4 int
|
|---|
| 29 | #define uint_4 unsigned int
|
|---|
| 30 | #else
|
|---|
| 31 | #define int_4 long
|
|---|
| 32 | #define uint_4 unsigned long
|
|---|
| 33 | #endif
|
|---|
| 34 |
|
|---|
| 35 | #if SIZEOF_LONG == 8
|
|---|
| 36 | #define int_8 long
|
|---|
| 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
|
|---|
| 41 | #else
|
|---|
| 42 | #error no 8-byte long int...
|
|---|
| 43 | #endif
|
|---|
| 44 |
|
|---|
| 45 | #define r_8 double
|
|---|
| 46 |
|
|---|
| 47 | #endif
|
|---|
| 48 | #endif
|
|---|
| 49 |
|
|---|
| 50 | #ifdef __SGICC__
|
|---|
| 51 | namespace std { }
|
|---|
| 52 | using namespace std;
|
|---|
| 53 | #endif
|
|---|
| 54 |
|
|---|
| 55 | #endif
|
|---|
| 56 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.