mirror of
https://github.com/isledecomp/SIEdit.git
synced 2025-07-16 08:52:33 -04:00
21 lines
538 B
C
21 lines
538 B
C
|
#ifndef LIBWEAVER_GLOBAL_H
|
||
|
#define LIBWEAVER_GLOBAL_H
|
||
|
|
||
|
#if defined(__GNUC__)
|
||
|
#define LIBWEAVER_PACK( __Declaration__ ) __Declaration__ __attribute__((__packed__))
|
||
|
#elif defined(_MSC_VER)
|
||
|
#define LIBWEAVER_PACK( __Declaration__ ) __pragma( pack(push, 1) ) __Declaration__ __pragma( pack(pop))
|
||
|
#endif
|
||
|
|
||
|
#define LIBWEAVER_EXPORT __declspec(dllexport)
|
||
|
|
||
|
#if defined(_WIN32)
|
||
|
#define LIBWEAVER_OS_WINDOWS
|
||
|
#elif defined(__APPLE__)
|
||
|
#define LIBWEAVER_OS_MACOS
|
||
|
#elif defined(__linux__)
|
||
|
#define LIBWEAVER_OS_LINUX
|
||
|
#endif
|
||
|
|
||
|
#endif // LIBWEAVER_GLOBAL_H
|