mirror of
https://github.com/isledecomp/SIEdit.git
synced 2024-11-23 15:48:03 -05:00
20 lines
538 B
C
20 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
|