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.
This commit is contained in:
parent
c8726244ae
commit
0c35525e30
10 changed files with 63 additions and 12 deletions
16
src/compiler_specifics.h
Normal file
16
src/compiler_specifics.h
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
#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
|
||||
Loading…
Add table
Add a link
Reference in a new issue