forked from 0ad/0ad
# macosx compat
This was SVN commit r4196.
This commit is contained in:
parent
93b2c6ad1b
commit
399e26a9c5
@ -178,7 +178,7 @@
|
|||||||
# define OS_LINUX 0
|
# define OS_LINUX 0
|
||||||
#endif
|
#endif
|
||||||
// .. Mac OS X
|
// .. Mac OS X
|
||||||
#if defined(__MACOSX__)
|
#if (defined(__APPLE__) && defined(__MACH__))
|
||||||
# define OS_MACOSX 1
|
# define OS_MACOSX 1
|
||||||
#else
|
#else
|
||||||
# define OS_MACOSX 0
|
# define OS_MACOSX 0
|
||||||
|
@ -64,6 +64,19 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
// try to define _W64, if not already done
|
||||||
|
// (this is useful for catching pointer size bugs)
|
||||||
|
#ifndef _W64
|
||||||
|
# if MSC_VER
|
||||||
|
# define _W64 __w64
|
||||||
|
# elif GCC_VER
|
||||||
|
# define _W64 __attribute__((mode (__pointer__)))
|
||||||
|
# else
|
||||||
|
# define _W64
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
@ -58,7 +58,7 @@ linker won't find the definitions of these functions. Right now this is only
|
|||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
template<typename T, bool ReadOnly = false> class CJSComplex;
|
template<typename T, bool ReadOnly> class CJSComplex;
|
||||||
|
|
||||||
template<typename T> class CJSComplexPropertyAccessor
|
template<typename T> class CJSComplexPropertyAccessor
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user