Etterna 0.74.4
Loading...
Searching...
No Matches
arch_setup.h
1#ifndef ARCH_SETUP_DARWIN_H
2#define ARCH_SETUP_DARWIN_H
3
4// Replace the main function.
5extern "C" int
6sm_main(int argc, char* argv[]);
7
8#define HAVE_CXA_DEMANGLE
9#define HAVE_PTHREAD_COND_TIMEDWAIT
10/* This must be defined to 1 because autoconf's AC_CHECK_DECLS macro decides to
11 * define this in all cases. If only they could be consistent... */
12#define HAVE_DECL_SIGUSR1 1
13
14#define __STDC_FORMAT_MACROS
15#define CRASH_HANDLER
16
17#define GL_GET_ERROR_IS_SLOW
18// CGFlushDrawable() performs a glFlush() and the docs say not to call glFlush()
19#define NO_GL_FLUSH
20
21#define BACKTRACE_METHOD_X86_DARWIN
22#define BACKTRACE_LOOKUP_METHOD_DLADDR
23
24#ifndef MACOSX
25#define MACOSX
26#endif
27#ifndef __MACOSX__
28#define __MACOSX__
29#endif
30
31#include <libkern/OSByteOrder.h>
32#define ArchSwap32(n) OSSwapInt32((n))
33#define ArchSwap24(n) (ArchSwap32((n)) >> 8)
34#define ArchSwap16(n) OSSwapInt16((n))
35#define HAVE_BYTE_SWAPS
36
37#endif