1 /* Moose Programming Language
2 * (c) Jeremy Tregunna, 2006, All Rights Reserved.
5 #ifndef __MOOSE__PLATFORM_H
6 #define __MOOSE__PLATFORM_H
9 # define MOOSE_BEGIN_DECLS extern "C" {
10 # define MOOSE_END_DECLS }
12 # define MOOSE_BEGIN_DECLS
13 # define MOOSE_END_DECLS
14 #endif /* __cplusplus */
16 /* Unix platforms that don't -Dunix */
19 /* Make sure we're running OS X previous versions of Mac OS define __APPLE__ */
23 # error "Moose is not supported on your version of Mac OS."
24 # endif /* __MACH__ */
25 # endif /* __APPLE__ */
28 # endif /* __NetBSD__ */
31 # endif /* __unix__ */
34 /* Assertaion C99 compatibility */
35 #if !(defined(__STDC__) && defined(__STDC_VERSION__) \
36 && __STDC_VERSION__ >= 199901L)
37 # error "An ISO-C99 compiler is required."
41 # if defined(__MINGW__) || defined(_MSC_VER)
42 # define MOOSE_INLINE __inline
44 # define MOOSE_INLINE inline
47 # define MOOSE_API __declspec(dllexport)
49 # define MOOSE_API __declspec(dllimport)
52 # define MOOSE_INLINE inline
56 #endif /* __MOOSE__PLATFORM_H */