summaryrefslogtreecommitdiff
path: root/src/runtime/c/gu/sysdeps.h
blob: fc889ce19ee711879ee1cba48a9bc79319c4b7d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef GU_SYSDEPS_H_
#define GU_SYSDEPS_H_

#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
# define GU_GNUC
#endif

#ifdef GU_GNUC
# define GU_ALIGNOF __alignof
# 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_