Fix wxGLCanvas build in wxQt when using MSVC

Use "#pragma message" instead of "#warning" with this compiler to fix
the build after the recent changes of 589e043358 (Add an explicit
warning about missing OpenGL support in wxQt, 2020-07-06).
This commit is contained in:
Vadim Zeitlin 2020-07-07 15:31:26 +02:00
parent 270c8bec3d
commit eeb69ba185

View File

@ -14,7 +14,13 @@
#include <QtOpenGL/QGLWidget>
#warning "OpenGL support is not implemented in wxQt"
#if defined(__VISUALC__)
#pragma message("OpenGL support is not implemented in wxQt")
#elif defined(__BORLANDC__)
#pragma message "OpenGL support is not implemented in wxQt"
#else
#warning "OpenGL support is not implemented in wxQt"
#endif
wxGCC_WARNING_SUPPRESS(unused-parameter)
class wxQtGLWidget : public wxQtEventSignalHandler< QGLWidget, wxGLCanvas >