inclusions of system headers more consistent.
-
/*-------------------------------------------------------------------------
*
* libpq++.h
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
* Portions Copyright (c) 1994, Regents of the University of California
*
+ * $Id: libpq++.h,v 1.7 2000/03/30 05:30:42 tgl Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef LIBPQXX_H
#define LIBPQXX_H
-#include <stdio.h>
-#include <strings.h>
+extern "C" {
+#include "config.h"
+}
+
+#ifdef HAVE_CXX_STRING_HEADER
#include <string>
+#endif
extern "C" {
-#include "config.h"
#include "postgres.h"
#include "libpq-fe.h"
}
-static char rcsid[] = "$Id: libpq++.h,v 1.6 2000/03/02 02:00:58 momjian Exp $";
-
+#ifdef HAVE_NAMESPACE_STD
using namespace std;
+#endif
+
// ****************************************************************
//
#define BUFSIZE 1024
#endif /* LIBPQXX_H */
-
-
* Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/interfaces/libpq++/Attic/pgconnection.cc,v 1.7 2000/03/16 15:34:36 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/interfaces/libpq++/Attic/pgconnection.cc,v 1.8 2000/03/30 05:30:42 tgl Exp $
*
*-------------------------------------------------------------------------
*/
-#include <stdlib.h>
-#include <string.h>
#include "pgconnection.h"
extern "C" {
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: pgconnection.h,v 1.4 2000/03/02 02:00:58 momjian Exp $
+ * $Id: pgconnection.h,v 1.5 2000/03/30 05:30:42 tgl Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef PGCONN_H
#define PGCONN_H
-#include <stdio.h>
+extern "C" {
+#include "config.h"
+}
+
+#ifdef HAVE_CXX_STRING_HEADER
#include <string>
+#endif
extern "C" {
+#include "postgres.h"
#include "libpq-fe.h"
}
+#ifdef HAVE_NAMESPACE_STD
using namespace std;
+#endif
+
// ****************************************************************
//
* Portions Copyright (c) 1994, Regents of the University of California
*
*
- * $Id: pgdatabase.h,v 1.6 2000/01/26 05:58:48 momjian Exp $
+ * $Id: pgdatabase.h,v 1.7 2000/03/30 05:30:42 tgl Exp $
*
*-------------------------------------------------------------------------
*/
#include "pgconnection.h"
-#include <stdlib.h>
// ****************************************************************
//