diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2001-05-14 14:19:32 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2001-05-14 14:19:32 +0000 |
commit | 167217bec15c9c7aa70ba2a3dc9c689b3cd91872 (patch) | |
tree | 7c0c62debf8f9f145643102fb52b81afce743594 /mdk-stage1/dietlibc/include/sys/cdefs.h | |
parent | 9097327dc1c667fc51b8e05cc7c0626fac96665d (diff) | |
download | drakx-167217bec15c9c7aa70ba2a3dc9c689b3cd91872.tar drakx-167217bec15c9c7aa70ba2a3dc9c689b3cd91872.tar.gz drakx-167217bec15c9c7aa70ba2a3dc9c689b3cd91872.tar.bz2 drakx-167217bec15c9c7aa70ba2a3dc9c689b3cd91872.tar.xz drakx-167217bec15c9c7aa70ba2a3dc9c689b3cd91872.zip |
import new version of dietlibc
Diffstat (limited to 'mdk-stage1/dietlibc/include/sys/cdefs.h')
-rw-r--r-- | mdk-stage1/dietlibc/include/sys/cdefs.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/mdk-stage1/dietlibc/include/sys/cdefs.h b/mdk-stage1/dietlibc/include/sys/cdefs.h index 9f256f59f..895bb74b8 100644 --- a/mdk-stage1/dietlibc/include/sys/cdefs.h +++ b/mdk-stage1/dietlibc/include/sys/cdefs.h @@ -1,11 +1,17 @@ #ifndef _SYS_CDEFS_H #define _SYS_CDEFS_H +#define __dietlibc__ + #ifndef __cplusplus #define throw () #define __THROW +#define __BEGIN_DECLS +#define __END_DECLS #else #define __THROW throw () +#define __BEGIN_DECLS extern "C" { +#define __END_DECLS } #endif #ifndef __GNUC__ @@ -19,6 +25,12 @@ #define __pure__ __attribute__ ((__pure__)) #endif +#if (__GNUC__ == 2) && (__GNUC_MINOR__ < 95) +#define __restrict__ +#endif + #endif +#define __P(x) x + #endif |