hammer/src/compiler_specifics.h
Nicolas Léveillé 0c35525e30 Convert usages of errx to h_platform_errx
This BSD call will have to be implemented on windows. Right now
we have a stub that just exits the process.
2015-08-09 22:46:45 +02:00

16 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