Skip to content
Snippets Groups Projects
Commit 0a5a0b8d authored by Tom Lane's avatar Tom Lane
Browse files

Make use of configure symbols for unportable constructs. Make

inclusions of system headers more consistent.
parent 67cee153
No related branches found
No related tags found
No related merge requests found
/*------------------------------------------------------------------------- /*-------------------------------------------------------------------------
* *
* libpq++.h * libpq++.h
...@@ -14,6 +13,7 @@ ...@@ -14,6 +13,7 @@
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc * Portions Copyright (c) 1996-2000, PostgreSQL, Inc
* Portions Copyright (c) 1994, Regents of the University of California * Portions Copyright (c) 1994, Regents of the University of California
* *
* $Id: libpq++.h,v 1.7 2000/03/30 05:30:42 tgl Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -21,19 +21,23 @@ ...@@ -21,19 +21,23 @@
#ifndef LIBPQXX_H #ifndef LIBPQXX_H
#define LIBPQXX_H #define LIBPQXX_H
#include <stdio.h> extern "C" {
#include <strings.h> #include "config.h"
}
#ifdef HAVE_CXX_STRING_HEADER
#include <string> #include <string>
#endif
extern "C" { extern "C" {
#include "config.h"
#include "postgres.h" #include "postgres.h"
#include "libpq-fe.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; using namespace std;
#endif
// **************************************************************** // ****************************************************************
// //
...@@ -194,5 +198,3 @@ public: ...@@ -194,5 +198,3 @@ public:
#define BUFSIZE 1024 #define BUFSIZE 1024
#endif /* LIBPQXX_H */ #endif /* LIBPQXX_H */
...@@ -10,13 +10,11 @@ ...@@ -10,13 +10,11 @@
* Copyright (c) 1994, Regents of the University of California * Copyright (c) 1994, Regents of the University of California
* *
* IDENTIFICATION * 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" #include "pgconnection.h"
extern "C" { extern "C" {
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc * Portions Copyright (c) 1996-2000, PostgreSQL, Inc
* Portions Copyright (c) 1994, Regents of the University of California * 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 $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -21,14 +21,23 @@ ...@@ -21,14 +21,23 @@
#ifndef PGCONN_H #ifndef PGCONN_H
#define PGCONN_H #define PGCONN_H
#include <stdio.h> extern "C" {
#include "config.h"
}
#ifdef HAVE_CXX_STRING_HEADER
#include <string> #include <string>
#endif
extern "C" { extern "C" {
#include "postgres.h"
#include "libpq-fe.h" #include "libpq-fe.h"
} }
#ifdef HAVE_NAMESPACE_STD
using namespace std; using namespace std;
#endif
// **************************************************************** // ****************************************************************
// //
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
* Portions Copyright (c) 1994, Regents of the University of California * 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 $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
#include "pgconnection.h" #include "pgconnection.h"
#include <stdlib.h>
// **************************************************************** // ****************************************************************
// //
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment