Use <wx/platform.h> instead of <wx/setup.h>
On non-Unix, the platform selection is in platform.h, not on the command line using the preprocessor macros from wx-config. <wx/setup.h> relies on the platform being selected correctly, if it is included directly, it cannot determine the correct configuration with Visual Studio.
This commit is contained in:
parent
1faee7fdce
commit
731e56a474
|
@ -29,7 +29,7 @@
|
||||||
#define KIGLEW_H_
|
#define KIGLEW_H_
|
||||||
|
|
||||||
// Pull in the configuration options for wxWidgets
|
// Pull in the configuration options for wxWidgets
|
||||||
#include <wx/setup.h>
|
#include <wx/platform.h>
|
||||||
|
|
||||||
// Apple, in their infinite wisdom, has decided to mark OpenGL as deprecated.
|
// Apple, in their infinite wisdom, has decided to mark OpenGL as deprecated.
|
||||||
// Luckily we can silence warnings about its deprecation. This is needed on the GLEW
|
// Luckily we can silence warnings about its deprecation. This is needed on the GLEW
|
||||||
|
|
|
@ -28,8 +28,6 @@
|
||||||
|
|
||||||
#include <limits>
|
#include <limits>
|
||||||
|
|
||||||
#include <wx/setup.h>
|
|
||||||
|
|
||||||
class GL_UTILS
|
class GL_UTILS
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
Loading…
Reference in New Issue