apple: Introduce a central compatibility header with all __APPLE__ quirks

This commit is contained in:
Martin Willi
2014-11-21 12:02:08 +01:00
parent 6e1d3f3615
commit f65779dd0f
6 changed files with 113 additions and 87 deletions
+1 -5
View File
@@ -21,10 +21,7 @@
#ifndef THREADING_SEMAPHORE_H_
#define THREADING_SEMAPHORE_H_
#ifdef __APPLE__
/* Mach uses a semaphore_create() call, use a different name for ours */
#define semaphore_create(x) strongswan_semaphore_create(x)
#endif /* __APPLE__ */
#include <utils/utils.h>
typedef struct semaphore_t semaphore_t;
@@ -87,4 +84,3 @@ struct semaphore_t {
semaphore_t *semaphore_create(u_int value);
#endif /** THREADING_SEMAPHORE_H_ @} */