Compile and link fixes for Mac OS X (bug 4392, r=dvander).

This commit is contained in:
Scott Ehlert
2010-05-13 04:22:31 -05:00
parent 5ef40e15c4
commit 95de453677
5 changed files with 30 additions and 8 deletions
+1 -1
View File
@@ -32,7 +32,7 @@
#ifndef _INCLUDE_SOURCEMOD_DETOURHELPERS_H_
#define _INCLUDE_SOURCEMOD_DETOURHELPERS_H_
#if defined PLATFORM_LINUX
#if defined PLATFORM_LINUX || defined PLATFORM_APPLE
#include <sys/mman.h>
#define PAGE_SIZE 4096
#define ALIGN(ar) ((long)ar & ~(PAGE_SIZE-1))