diff options
author | Diogo Franco (Kovensky) <diogomfranco@gmail.com> | 2014-09-10 17:22:20 +0900 |
---|---|---|
committer | Diogo Franco (Kovensky) <diogomfranco@gmail.com> | 2014-09-10 17:22:20 +0900 |
commit | 5bbf5ee10303dcbb3f3a3e8a4ecf0193a137a66c (patch) | |
tree | 56e39e6df129c63eb35ed7e3c7eeb68dcd6d81c4 /osdep/semaphore_osx.c | |
parent | 302a04091b798c698fec7045cd86b6c3ecc3de02 (diff) | |
download | mpv-5bbf5ee10303dcbb3f3a3e8a4ecf0193a137a66c.tar.bz2 mpv-5bbf5ee10303dcbb3f3a3e8a4ecf0193a137a66c.tar.xz |
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.
Diffstat (limited to 'osdep/semaphore_osx.c')
-rw-r--r-- | osdep/semaphore_osx.c | 5 |
1 files 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 <unistd.h> @@ -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) { |