diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2001-09-30 22:30:37 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2001-09-30 22:30:37 +0000 |
commit | 95d4821b1cc56f834b1d901bb9f0bdaf43ff8cc0 (patch) | |
tree | 0e1c01704739133904a7c8ff9f819cb4ef8ffafb /src/interfaces/libpq++/pglobject.cc | |
parent | 958808426372a0bb0f5aa0ed8d455c753e6b338a (diff) |
Make libpq++ safe again for older C++ compilers. Do 'using namespace std'
only if configure found it was safe to do so; do not assume const_cast
is available.
Diffstat (limited to 'src/interfaces/libpq++/pglobject.cc')
-rw-r--r-- | src/interfaces/libpq++/pglobject.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/interfaces/libpq++/pglobject.cc b/src/interfaces/libpq++/pglobject.cc index 0523ec8f91a..6bf5e304438 100644 --- a/src/interfaces/libpq++/pglobject.cc +++ b/src/interfaces/libpq++/pglobject.cc @@ -10,7 +10,7 @@ * Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/interfaces/libpq++/Attic/pglobject.cc,v 1.7 2001/05/09 17:29:10 momjian Exp $ + * $Header: /cvsroot/pgsql/src/interfaces/libpq++/Attic/pglobject.cc,v 1.8 2001/09/30 22:30:37 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -21,8 +21,9 @@ extern "C" { #include "libpq/libpq-fs.h" } - +#ifdef HAVE_NAMESPACE_STD using namespace std; +#endif // **************************************************************** |