]> git.saurik.com Git - wxWidgets.git/commitdiff
Include wx/defs.h before testing for wxUSE_CHECKLISTBOX.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 8 Aug 2010 11:35:55 +0000 (11:35 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 8 Aug 2010 11:35:55 +0000 (11:35 +0000)
We need to include wx/defs.h that (indirectly) defines wxUSE_CHECKLISTBOX
before testing for it in wx/checklst.h, otherwise the test may fail if the
latter header is the first wx header included by the user code.

Closes #12306.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65210 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/checklst.h

index 3d38f28810df3f6a9f5c6f487418d74c62c6e22c..a96c2ae3da007b45dda415490f641901e1aaa969 100644 (file)
@@ -12,6 +12,8 @@
 #ifndef _WX_CHECKLST_H_BASE_
 #define _WX_CHECKLST_H_BASE_
 
+#include "wx/defs.h"
+
 #if wxUSE_CHECKLISTBOX
 
 #include "wx/listbox.h"