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:
Simon Richter 2020-11-12 00:12:21 +01:00 committed by Ian McInerney
parent 1faee7fdce
commit 731e56a474
2 changed files with 1 additions and 3 deletions

View File

@ -29,7 +29,7 @@
#define KIGLEW_H_
// 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.
// Luckily we can silence warnings about its deprecation. This is needed on the GLEW

View File

@ -28,8 +28,6 @@
#include <limits>
#include <wx/setup.h>
class GL_UTILS
{
public: