17 lines
315 B
C
17 lines
315 B
C
|
|
#ifndef HAMMER_COMPILER_SPECIFICS__H
|
||
|
|
#define HAMMER_COMPILER_SPECIFICS__H
|
||
|
|
|
||
|
|
#if defined(__clang__) || defined(__GNUC__)
|
||
|
|
#define H_GCC_ATTRIBUTE(x) __attribute__(x)
|
||
|
|
#else
|
||
|
|
#define H_GCC_ATTRIBUTE(x)
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#if defined(_MSC_VER)
|
||
|
|
#define H_MSVC_DECLSPEC(x) __declspec(x)
|
||
|
|
#else
|
||
|
|
#define H_MSVC_DECLSPEC(x)
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#endif
|