LightWrap++
AC++wrapperfortheLightWave3DSDK
platform_osx64.h
Go to the documentation of this file.
1 
6 #ifndef LWPP_PLATFORM_OSX64_H
7 #define LWPP_PLATFORM_OSX64_H
8 
9 // #include <Carbon/Carbon.h>
10 #include <CoreServices/CoreServices.h>
11 #include <dirent.h>
12 #include <cstring>
13 #include <cmath>
14 #include <math.h>
15 #include <sstream>
16 #include <string>
17 #include <ios>
18 #include <cstdlib>
19 #include <cstdio>
20 #include <unistd.h>
21 #include <stdexcept>
22 #include <sys/stat.h>
23 
24 #ifndef MEMORY_BARRIER
25 #include <libkern/OSAtomic.h>
26 #define MEMORY_BARRIER OSMemoryBarrier()
27 #endif
28 
29 // using namespace std;
30 #define _mkdir(x) mkdir(x, DEFFILEMODE)
31 #define _unlink(x) unlink(x)
32 #define _alloca(x) __alloca(x)
33 #define _stat stat
34 
35 #ifdef _DEBUG
36  #include <iostream>
37  #include <fstream>
38  using std::cerr;
39 #endif
40 
41 #define UNUSED(x) (x)
42 
43 //used by OSX assert macros...
44 #ifdef check
45 #undef check
46 #endif // check
47 
48 #endif // LWPP_PLATFORM64_H