+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
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>