From 39b9cdaff4d2218623c36a812375dcfde7092f28 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Mon, 1 Sep 2003 19:32:16 +0000 Subject: [PATCH] Check wxUSE_DEPRECATED before including its headers git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23347 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- contrib/include/wx/ogl/basic.h | 6 ++++++ contrib/include/wx/ogl/ogldiag.h | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/contrib/include/wx/ogl/basic.h b/contrib/include/wx/ogl/basic.h index 52d1b43fd0..2c2ee17563 100644 --- a/contrib/include/wx/ogl/basic.h +++ b/contrib/include/wx/ogl/basic.h @@ -16,7 +16,13 @@ #pragma interface "basic.h" #endif +#ifndef wxUSE_DEPRECATED +#define wxUSE_DEPRECATED 1 +#endif + +#if wxUSE_DEPRECATED #include +#endif #define OGL_VERSION 2.0 diff --git a/contrib/include/wx/ogl/ogldiag.h b/contrib/include/wx/ogl/ogldiag.h index c1580a99c2..9a947182e2 100644 --- a/contrib/include/wx/ogl/ogldiag.h +++ b/contrib/include/wx/ogl/ogldiag.h @@ -16,7 +16,7 @@ #pragma interface "ogldiag.h" #endif -#include +#include "wx/ogl/basic.h" #if wxUSE_PROLOGIO #include -- 2.50.0