diff options
Diffstat (limited to 'common/JackShmMem.h')
-rw-r--r-- | common/JackShmMem.h | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/common/JackShmMem.h b/common/JackShmMem.h index d713bf70..17fe0cc7 100644 --- a/common/JackShmMem.h +++ b/common/JackShmMem.h @@ -23,26 +23,13 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. #include "shm.h" #include "JackError.h" -#include "JackExports.h" +#include "JackCompilerDeps.h" #include <new> // GCC 4.0 #include <errno.h> #include <stdlib.h> -#ifdef WIN32 -#include <windows.h> -#define CHECK_MLOCK(ptr, size) (VirtualLock((ptr), (size)) != 0) -#define CHECK_MUNLOCK(ptr, size) (VirtualUnlock((ptr), (size)) != 0) -#define CHECK_MLOCKALL()(false) -#define CHECK_MUNLOCKALL()(false) -#else -#include <sys/types.h> -#include <sys/mman.h> -#define CHECK_MLOCK(ptr, size) (mlock((ptr), (size)) == 0) -#define CHECK_MUNLOCK(ptr, size) (munlock((ptr), (size)) == 0) -#define CHECK_MLOCKALL() (mlockall(MCL_CURRENT | MCL_FUTURE) == 0) -#define CHECK_MUNLOCKALL() (munlockall() == 0) -#endif +#include "JackShmMem_os.h" namespace Jack { |