Merge pull request #185 from mstorsjo/macos-define

Define MACOS when building for OS X
This commit is contained in:
Ethan Hugg 2014-01-21 12:08:13 -08:00
commit 6607f43aab
2 changed files with 3 additions and 1 deletions

View File

@ -1,6 +1,6 @@
ASM = nasm
CFLAGS += -Wno-deprecated-declarations -Werror -fPIC
CFLAGS += -Wno-deprecated-declarations -Werror -fPIC -DMACOS
LDFLAGS += -lpthread
ASMFLAGS += --prefix _ -DNOPREFIX
ifeq ($(ENABLE64BIT), Yes)

View File

@ -30,6 +30,7 @@
*
*/
#ifndef NO_DYNAMIC_VP
#if defined(_WIN32)
#include <windows.h>
#elif defined(MACOS)
@ -37,6 +38,7 @@
#elif defined(__GNUC__)
#include <dlfcn.h>
#endif
#endif
#include <stdio.h>
#include <stdlib.h>