aboutsummaryrefslogtreecommitdiff
path: root/include/flatcc/portable/pinline.h
blob: f4f8f27083ad131a5076016b9c280abd94b8aa1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef PINLINE_H
#define PINLINE_H

#ifndef __cplusplus

#if (defined(__STDC__) && __STDC__ && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L)
/* C99 or newer */
#elif _MSC_VER >= 1500 /* MSVC 9 or newer */
#undef inline
#define inline __inline
#elif __GNUC__ >= 3 /* GCC 3 or newer */
#define inline __inline
#else /* Unknown or ancient */
#define inline
#endif

#endif /* __cplusplus */

#endif /* PINLINE_H */