apple build issue

This commit is contained in:
David Rose 2009-10-22 20:33:04 +00:00
parent df9edbe1dd
commit eaee7a00f8

View File

@ -11,6 +11,15 @@
// with this source code in a file named "LICENSE." // with this source code in a file named "LICENSE."
// //
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
#ifdef __APPLE__
// We have to include this before we include any Panda libraries,
// because one of the things we pick up in Panda defines a macro for
// TCP_NODELAY and friends, causing heartaches for the header files
// picked up here.
#include <Carbon/Carbon.h>
extern "C" { void CPSEnableForegroundOperation(ProcessSerialNumber* psn); }
#endif
#include "showBase.h" #include "showBase.h"
@ -19,11 +28,6 @@
#include "renderBuffer.h" #include "renderBuffer.h"
#include "camera.h" #include "camera.h"
#include "graphicsPipeSelection.h" #include "graphicsPipeSelection.h"
#ifdef __APPLE__
#include <Carbon/Carbon.h>
extern "C" { void CPSEnableForegroundOperation(ProcessSerialNumber* psn); }
#endif
#ifdef WIN32 #ifdef WIN32
#include <windows.h> // For SystemParametersInfo() #include <windows.h> // For SystemParametersInfo()