diff options
| author | kr.angelov <kr.angelov@gmail.com> | 2012-01-20 13:41:10 +0000 |
|---|---|---|
| committer | kr.angelov <kr.angelov@gmail.com> | 2012-01-20 13:41:10 +0000 |
| commit | 2eee382a62a909d5a3f2f5eda94f30fe68fd5335 (patch) | |
| tree | b0b0d513535895f244214aebf6358e172b8dce6d /src/runtime/c/gu/sysdeps.h | |
| parent | b9728357126f8b9a6311cca17d9f0dcc2a7bfb9b (diff) | |
initial import of the C runtime
Diffstat (limited to 'src/runtime/c/gu/sysdeps.h')
| -rw-r--r-- | src/runtime/c/gu/sysdeps.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/runtime/c/gu/sysdeps.h b/src/runtime/c/gu/sysdeps.h new file mode 100644 index 000000000..114e1c40d --- /dev/null +++ b/src/runtime/c/gu/sysdeps.h @@ -0,0 +1,30 @@ +#ifndef GU_SYSDEPS_H_ +#define GU_SYSDEPS_H_ + +#include <guconfig.h> + +#if defined(__GNUC__) && !defined(__STRICT_ANSI__) +# define GU_GNUC +#endif + +#ifdef GU_GNUC +# define GU_ALIGNOF __alignof +# define GU_HAVE_STATEMENT_EXPRESSIONS +# define GU_GNUC_ATTR(x) __attribute__(( x )) +# if defined(__OPTIMIZE_SIZE__) +# define GU_OPTIMIZE_SIZE +# elif defined(__OPTIMIZE__) +# define GU_OPTIMIZE_SPEED +# endif +#else +# define GU_GNUC_ATTR(x) +#endif + +#ifdef S_SPLINT_S +# define GU_SPLINT(x) %{ x %} +#else +# define GU_SPLINT(x) +#endif + + +#endif // GU_SYSDEPS_H_ |
