diff options
author | Andreas Baumann <abaumann@yahoo.com> | 2009-03-31 10:44:53 +0200 |
---|---|---|
committer | Andreas Baumann <abaumann@yahoo.com> | 2009-03-31 10:44:53 +0200 |
commit | adb36b9285ca8cf0e3d3a690f6682c20187379a1 (patch) | |
tree | c129d9ab409b7dc1301a27f1b5f4784a8d68dade /include/wolf/port/sys.h | |
parent | ab86dda9cc66a946d257ecb96cbf8a17662af045 (diff) | |
download | wolfbones-adb36b9285ca8cf0e3d3a690f6682c20187379a1.tar.gz wolfbones-adb36b9285ca8cf0e3d3a690f6682c20187379a1.tar.bz2 |
fixed inlining with microsoft compiler, introduced a INLINE macro
Diffstat (limited to 'include/wolf/port/sys.h')
-rw-r--r-- | include/wolf/port/sys.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/wolf/port/sys.h b/include/wolf/port/sys.h index 801fc61..de80f56 100644 --- a/include/wolf/port/sys.h +++ b/include/wolf/port/sys.h @@ -245,6 +245,13 @@ #if defined _MSC_VER #endif /* defined _MSC_VER */ +/* define INLINE (C99 inlining attribute is not yet known by all compilers */ +#if defined _MSC_VER +#define INLINE __inline +#else +#define INLINE inline +#endif + /* define one version string for comparing GNU c versions */ #if defined __GNUC__ #if defined __GNUC_PATCHLEVEL__ |