Browse Source

COMP: Make sure gcc 2.96 sstream header is not used.

Brad King 18 years ago
parent
commit
1ef33c6c04
1 changed files with 3 additions and 0 deletions
  1. 3 0
      Source/kwsys/kwsysPlatformTestsCXX.cxx

+ 3 - 0
Source/kwsys/kwsysPlatformTestsCXX.cxx

@@ -46,6 +46,9 @@ int main() { return 0; }
 
 #ifdef TEST_KWSYS_IOS_USE_SSTREAM
 #include <sstream>
+#if defined(__GNUC__) && __GNUC__ == 2 && __GNUC_MINOR__ == 96
+# error "GCC 2.96 stringstream is buggy"
+#endif
 int main()
 { 
   std::ostringstream ostr;