Replace #pragma once with #ifndef #define #endif logic because #pragma once does not work cleanly on OSX

This commit is contained in:
jsteube
2016-09-06 18:44:05 +02:00
parent c3fe5b40b1
commit e4bf86dcbe
31 changed files with 123 additions and 32 deletions
+4 -2
View File
@@ -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