Merge pull request #185 from mstorsjo/macos-define
Define MACOS when building for OS X
This commit is contained in:
commit
6607f43aab
@ -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)
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user