… | |
… | |
9 | #define PP_CONCAT_(a, b) a ## b |
9 | #define PP_CONCAT_(a, b) a ## b |
10 | #define PP_CONCAT(a, b) PP_CONCAT_(a, b) |
10 | #define PP_CONCAT(a, b) PP_CONCAT_(a, b) |
11 | #define PP_STRINGIFY_(a) #a |
11 | #define PP_STRINGIFY_(a) #a |
12 | #define PP_STRINGIFY(a) PP_STRINGIFY_(a) |
12 | #define PP_STRINGIFY(a) PP_STRINGIFY_(a) |
13 | |
13 | |
14 | // actually, some gcc-3.x versions work, too |
14 | #define HAVE_GCC_BUILTINS (__GNUC__ >= 4 || (__GNUC__ == 3 && __GNUC_MINOR__ == 4)) |
15 | #define HAVE_GCC_BUILTINS (__GNUC__ >= 4) |
|
|
16 | |
15 | |
17 | #ifndef __attribute__ |
16 | #ifndef __attribute__ |
18 | # if __GNUC__ |
17 | # if __GNUC__ |
19 | # if (__GNUC__ == 2 && __GNUC_MINOR__ < 5) || (__GNUC__ < 2) |
18 | # if (__GNUC__ == 2 && __GNUC_MINOR__ < 5) || (__GNUC__ < 2) |
20 | # define __attribute__(x) |
19 | # define __attribute__(x) |
… | |
… | |
91 | void *operator new (size_t s); |
90 | void *operator new (size_t s); |
92 | void operator delete (void *p, size_t s); |
91 | void operator delete (void *p, size_t s); |
93 | }; |
92 | }; |
94 | |
93 | |
95 | /* simplevec taken (and heavily modified), from: |
94 | /* simplevec taken (and heavily modified), from: |
96 | * |
95 | * |
97 | * MICO --- a free CORBA implementation |
96 | * MICO --- a free CORBA implementation |
98 | * Copyright (C) 1997-98 Kay Roemer & Arno Puder |
97 | * Copyright (C) 1997-98 Kay Roemer & Arno Puder |
99 | */ |
98 | */ |
100 | template<class T> |
99 | template<class T> |
101 | struct simplevec { |
100 | struct simplevec { |