Replace #pragma once with #ifndef #define #endif logic because #pragma once does not work cleanly on OSX
This commit is contained in:
+4
-2
@@ -5,7 +5,8 @@
|
||||
* License.....: MIT
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#ifndef _COMMON_H
|
||||
#define _COMMON_H
|
||||
|
||||
#define _POSIX_SOURCE
|
||||
#define _GNU_SOURCE
|
||||
@@ -21,7 +22,6 @@
|
||||
|
||||
#define BLOCK_SIZE 64
|
||||
|
||||
|
||||
#define EXPECTED_ITERATIONS 10000
|
||||
|
||||
#define MIN(a,b) (((a) < (b)) ? (a) : (b))
|
||||
@@ -38,3 +38,5 @@
|
||||
#ifdef _WIN
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#endif
|
||||
|
||||
#endif // _COMMON_H
|
||||
|
||||
Reference in New Issue
Block a user