Fixed wxSTD for old gcc versions.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33667 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Neis
2005-04-16 14:49:39 +00:00
parent f57d5c8919
commit 76e58831fe

View File

@@ -310,12 +310,13 @@
/* /*
old C++ headers (like <iostream.h>) declare classes in the global namespace old C++ headers (like <iostream.h>) declare classes in the global namespace
while the new, standard ones (like <iostream>) do it in std:: namespace while the new, standard ones (like <iostream>) do it in std:: namespace,
unless it's an old gcc version.
using this macro allows constuctions like "wxSTD iostream" to work in using this macro allows constuctions like "wxSTD iostream" to work in
either case either case
*/ */
#if !wxUSE_IOSTREAMH #if !wxUSE_IOSTREAMH && (!defined(__GNUC__) || ( __GNUC__ > 2 ) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95))
# define wxSTD std:: # define wxSTD std::
#else #else
# define wxSTD # define wxSTD