From 76e58831fe19e282e3f995e1401bef55bd5eab3e Mon Sep 17 00:00:00 2001 From: Stefan Neis Date: Sat, 16 Apr 2005 14:49:39 +0000 Subject: [PATCH] Fixed wxSTD for old gcc versions. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33667 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/platform.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/wx/platform.h b/include/wx/platform.h index 2b4a0a274f..e3e59593ee 100644 --- a/include/wx/platform.h +++ b/include/wx/platform.h @@ -310,12 +310,13 @@ /* old C++ headers (like ) declare classes in the global namespace - while the new, standard ones (like ) do it in std:: namespace + while the new, standard ones (like ) do it in std:: namespace, + unless it's an old gcc version. using this macro allows constuctions like "wxSTD iostream" to work in either case */ -#if !wxUSE_IOSTREAMH +#if !wxUSE_IOSTREAMH && (!defined(__GNUC__) || ( __GNUC__ > 2 ) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)) # define wxSTD std:: #else # define wxSTD