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

Commit8f5561a

Browse files
committed
More config.h cleanups.
1 parentfbe4ad2 commit8f5561a

File tree

3 files changed

+9
-14
lines changed

3 files changed

+9
-14
lines changed

‎src/backend/port/inet_aton.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $Id: inet_aton.c,v 1.16 1999/02/07 22:07:02 tgl Exp $
1+
/* $Id: inet_aton.c,v 1.17 1999/07/17 04:12:09 momjian Exp $
22
*
33
*This inet_aton() function was taken from the GNU C library and
44
*incorporated into Postgres for those systems which do not have this
@@ -42,12 +42,12 @@
4242
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
4343
* SUCH DAMAGE. */
4444

45-
#include"config.h"
46-
4745
#include<sys/types.h>
4846
#include<netinet/in.h>
4947
#include<ctype.h>
5048

49+
#include"config.h"
50+
5151
/*
5252
* Check whether "cp" is a valid ascii representation
5353
* of an Internet address and convert to a binary address.

‎src/include/c.h

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
* Copyright (c) 1994, Regents of the University of California
99
*
10-
* $Id: c.h,v 1.59 1999/07/13 20:00:32 momjian Exp $
10+
* $Id: c.h,v 1.60 1999/07/17 04:12:09 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -46,6 +46,10 @@
4646
on some platforms, and we only want our definitions used if stdlib.h doesn't
4747
have its own. The same goes for stddef and stdarg if present.
4848
*/
49+
50+
#include"config.h"
51+
52+
4953
#include<stdlib.h>
5054
#ifdefSTDC_HEADERS
5155
#include<stddef.h>
@@ -103,12 +107,6 @@ typedef bool *BoolPtr;
103107
* ----------------------------------------------------------------
104108
*/
105109

106-
/*
107-
* We used to define const, signed, volatile, and inline as empty
108-
* if __STDC__ wasn't defined. Now we let configure test whether
109-
* those keywords work; config.h defines them as empty if not.
110-
*/
111-
112110
/*
113111
* CppAsString
114112
*Convert the argument to a string, using the C preprocessor.

‎src/include/postgres.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* Copyright (c) 1995, Regents of the University of California
88
*
9-
* $Id: postgres.h,v 1.25 1999/07/16 17:07:24 momjian Exp $
9+
* $Id: postgres.h,v 1.26 1999/07/17 04:12:10 momjian Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -36,9 +36,6 @@
3636
#definePOSTGRES_H
3737

3838
#include"postgres_ext.h"
39-
#ifndefWIN32
40-
#include"config.h"
41-
#endif
4239
#include"c.h"
4340
#include"utils/elog.h"
4441
#include"utils/mcxt.h"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp