]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Avoid g++ 3.1 deprecation warnings.
authorBruno Haible <bruno@clisp.org>
Mon, 6 May 2002 11:04:06 +0000 (11:04 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:07:57 +0000 (12:07 +0200)
tests/ChangeLog
tests/lang-c++

index 8692efefa0787036db2fa5a782944109ef4fb0d1..57320cb18bd79d503098806c42bc4c56d1b4bef1 100644 (file)
@@ -1,3 +1,8 @@
+2002-05-04  Bruno Haible  <bruno@clisp.org>
+
+       * lang-c++: Use <iostream> instead of <iostream.h> to avoid g++ 3.1
+       deprecation warnings.
+
 2002-04-27  Bruno Haible  <bruno@clisp.org>
 
        * plural-1-prg.c: No need to redirect textdomain() etc., now done in
index 47c07281fd9a584dea0e24a6e7fd2fb18ee231c1..430fe274757a0fb75f57901da860462896405e5d 100755 (executable)
@@ -15,7 +15,15 @@ fi
 tmpfiles="$tmpfiles prog.cc"
 cat <<\EOF > prog.cc
 #include "config.h"
-#include <iostream.h>
+
+/* Avoid deprecation warnings from g++ 3.1 or newer.  */
+#if defined __GNUG__ && defined __DEPRECATED
+# include <iostream>
+using namespace std;
+#else
+# include <iostream.h>
+#endif
+
 #include <libintl.h>
 #include <locale.h>
 #include <stdio.h>