From 5bbf5ee10303dcbb3f3a3e8a4ecf0193a137a66c Mon Sep 17 00:00:00 2001 From: "Diogo Franco (Kovensky)" Date: Wed, 10 Sep 2014 17:22:20 +0900 Subject: [PATCH] osdep/semaphore_osx.c: Include osdep/semaphore.h before #ifdef osdep/semaphore.h is the file that defines the very #define that is tested in the #ifdef that wraps its inclusion, so it was never compiled. --- osdep/semaphore_osx.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/osdep/semaphore_osx.c b/osdep/semaphore_osx.c index 0d5b6f4d00..1bff233007 100644 --- a/osdep/semaphore_osx.c +++ b/osdep/semaphore_osx.c @@ -11,6 +11,8 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +#include "osdep/semaphore.h" + #ifdef MP_SEMAPHORE_EMULATION #include @@ -21,9 +23,6 @@ #include "osdep/io.h" -#include "semaphore.h" - - int mp_sem_init(mp_sem_t *sem, int pshared, unsigned int value) { if (pshared) {