Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0a5a0b8

Browse files
committed
Make use of configure symbols for unportable constructs. Make
inclusions of system headers more consistent.
1 parent67cee15 commit0a5a0b8

File tree

4 files changed

+23
-15
lines changed

4 files changed

+23
-15
lines changed

‎src/interfaces/libpq++/libpq++.h

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
/*-------------------------------------------------------------------------
32
*
43
* libpq++.h
@@ -14,26 +13,31 @@
1413
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
1514
* Portions Copyright (c) 1994, Regents of the University of California
1615
*
16+
* $Id: libpq++.h,v 1.7 2000/03/30 05:30:42 tgl Exp $
1717
*
1818
*-------------------------------------------------------------------------
1919
*/
2020

2121
#ifndef LIBPQXX_H
2222
#defineLIBPQXX_H
2323

24-
#include<stdio.h>
25-
#include<strings.h>
24+
extern"C" {
25+
#include"config.h"
26+
}
27+
28+
#ifdef HAVE_CXX_STRING_HEADER
2629
#include<string>
30+
#endif
2731

2832
extern"C" {
29-
#include"config.h"
3033
#include"postgres.h"
3134
#include"libpq-fe.h"
3235
}
3336

34-
staticchar rcsid[] ="$Id: libpq++.h,v 1.6 2000/03/02 02:00:58 momjian Exp $";
35-
37+
#ifdef HAVE_NAMESPACE_STD
3638
usingnamespacestd;
39+
#endif
40+
3741

3842
// ****************************************************************
3943
//
@@ -194,5 +198,3 @@ class PgCursor : public PgTransaction {
194198
#defineBUFSIZE1024
195199

196200
#endif/* LIBPQXX_H*/
197-
198-

‎src/interfaces/libpq++/pgconnection.cc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,11 @@
1010
* Copyright (c) 1994, Regents of the University of California
1111
*
1212
* IDENTIFICATION
13-
* $Header: /cvsroot/pgsql/src/interfaces/libpq++/Attic/pgconnection.cc,v 1.7 2000/03/16 15:34:36 momjian Exp $
13+
* $Header: /cvsroot/pgsql/src/interfaces/libpq++/Attic/pgconnection.cc,v 1.8 2000/03/30 05:30:42 tgl Exp $
1414
*
1515
*-------------------------------------------------------------------------
1616
*/
1717

18-
#include<stdlib.h>
19-
#include<string.h>
2018
#include"pgconnection.h"
2119

2220
extern"C" {

‎src/interfaces/libpq++/pgconnection.h

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,31 @@
1313
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
1414
* Portions Copyright (c) 1994, Regents of the University of California
1515
*
16-
* $Id: pgconnection.h,v 1.4 2000/03/02 02:00:58 momjian Exp $
16+
* $Id: pgconnection.h,v 1.5 2000/03/30 05:30:42 tgl Exp $
1717
*
1818
*-------------------------------------------------------------------------
1919
*/
2020

2121
#ifndef PGCONN_H
2222
#definePGCONN_H
2323

24-
#include<stdio.h>
24+
extern"C" {
25+
#include"config.h"
26+
}
27+
28+
#ifdef HAVE_CXX_STRING_HEADER
2529
#include<string>
30+
#endif
2631

2732
extern"C" {
33+
#include"postgres.h"
2834
#include"libpq-fe.h"
2935
}
3036

37+
#ifdef HAVE_NAMESPACE_STD
3138
usingnamespacestd;
39+
#endif
40+
3241

3342
// ****************************************************************
3443
//

‎src/interfaces/libpq++/pgdatabase.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* Portions Copyright (c) 1994, Regents of the University of California
1515
*
1616
*
17-
* $Id: pgdatabase.h,v 1.6 2000/01/26 05:58:48 momjian Exp $
17+
* $Id: pgdatabase.h,v 1.7 2000/03/30 05:30:42 tgl Exp $
1818
*
1919
*-------------------------------------------------------------------------
2020
*/
@@ -24,7 +24,6 @@
2424

2525
#include"pgconnection.h"
2626

27-
#include<stdlib.h>
2827

2928
// ****************************************************************
3029
//

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp