initial import
[patches.git] / libtool-1.5.23-tagdemo-c++.patch
1 2005-09-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2
3 Make tagdemo work smoothly with both pre- and ISO C++ compilers,
4 and remove all use of libstdc from other tests.
5
6 * tests/tagdemo/configure.ac (HAVE_NAMESPACES, HAVE_IOSTREAM):
7 New tests for ISO C++ features. Reimplementation of similar
8 macros from the autoconf archive.
9 * tests/tagdemo/foo.cpp, tests/tagdemo/main.cpp: Adjusted.
10 * tests/am-subdir.at, tests/template.at: Do not use iostream.
11
12 Index: tagdemo/foo.cpp
13 ===================================================================
14 RCS file: /sources/libtool/libtool/tests/tagdemo/foo.cpp,v
15 retrieving revision 1.2
16 retrieving revision 1.3
17 diff -u -p -r1.2 -r1.3
18 --- tagdemo/foo.cpp 22 Apr 2005 10:10:31 -0000 1.2
19 +++ tagdemo/foo.cpp 12 Sep 2005 16:24:38 -0000 1.3
20 @@ -20,7 +20,14 @@
21 // USA.
22
23 #include "foo.h"
24 -#include <iostream.h>
25 +#ifdef HAVE_IOSTREAM
26 +# include <iostream>
27 +#else
28 +# include <iostream.h>
29 +#endif
30 +#ifdef HAVE_NAMESPACES
31 +using namespace std;
32 +#endif
33
34 #ifdef HAVE_MATH_H
35 #include <math.h>