diff options
Diffstat (limited to 'common/arch.h')
-rw-r--r-- | common/arch.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/common/arch.h b/common/arch.h index c63db197..b8d61381 100644 --- a/common/arch.h +++ b/common/arch.h @@ -18,6 +18,9 @@ */ +#if !defined(ARCH_H) +#define ARCH_H + /* check endianess */ #if __BYTE_ORDER == __LITTLE_ENDIAN #define L_ENDIAN @@ -39,3 +42,19 @@ #define THREAD_RV void* #define THREAD_CC #endif + +#if defined(__BORLANDC__) +#define APP_CC __cdecl +#define DEFAULT_CC __cdecl +#else +#define APP_CC +#define DEFAULT_CC +#endif + +#if defined(_WIN32) +#define EXPORT_CC __declspec(dllexport) +#else +#define EXPORT_CC +#endif + +#endif |