# macosx compat

This was SVN commit r4196.
This commit is contained in:
janwas 2006-08-04 09:30:43 +00:00
parent 93b2c6ad1b
commit 399e26a9c5
3 changed files with 15 additions and 2 deletions

View File

@ -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

View File

@ -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

View File

@ -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
{ {