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

Commit0d2aad8

Browse files
committed
Put undef's before extern declarations that need 'em, per Andrew Dunstan.
1 parentef31c2b commit0d2aad8

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

‎src/include/port.h

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
77
* Portions Copyright (c) 1994, Regents of the University of California
88
*
9-
* $PostgreSQL: pgsql/src/include/port.h,v 1.85 2005/12/0602:29:03 tgl Exp $
9+
* $PostgreSQL: pgsql/src/include/port.h,v 1.86 2005/12/0605:13:46 tgl Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -114,24 +114,6 @@ extern unsigned char pg_tolower(unsigned char ch);
114114

115115
#ifdefUSE_REPL_SNPRINTF
116116

117-
externintpg_vsnprintf(char*str,size_tcount,constchar*fmt,va_listargs);
118-
externint
119-
pg_snprintf(char*str,size_tcount,constchar*fmt,...)
120-
/* This extension allows gcc to check the format string */
121-
__attribute__((format(printf,3,4)));
122-
externint
123-
pg_sprintf(char*str,constchar*fmt,...)
124-
/* This extension allows gcc to check the format string */
125-
__attribute__((format(printf,2,3)));
126-
externint
127-
pg_fprintf(FILE*stream,constchar*fmt,...)
128-
/* This extension allows gcc to check the format string */
129-
__attribute__((format(printf,2,3)));
130-
externint
131-
pg_printf(constchar*fmt,...)
132-
/* This extension allows gcc to check the format string */
133-
__attribute__((format(printf,1,2)));
134-
135117
/*
136118
* Some versions of libintl try to replace printf and friends with macros;
137119
* if we are doing likewise, make sure our versions win.
@@ -152,6 +134,24 @@ __attribute__((format(printf, 1, 2)));
152134
#undef printf
153135
#endif
154136

137+
externintpg_vsnprintf(char*str,size_tcount,constchar*fmt,va_listargs);
138+
externint
139+
pg_snprintf(char*str,size_tcount,constchar*fmt,...)
140+
/* This extension allows gcc to check the format string */
141+
__attribute__((format(printf,3,4)));
142+
externint
143+
pg_sprintf(char*str,constchar*fmt,...)
144+
/* This extension allows gcc to check the format string */
145+
__attribute__((format(printf,2,3)));
146+
externint
147+
pg_fprintf(FILE*stream,constchar*fmt,...)
148+
/* This extension allows gcc to check the format string */
149+
__attribute__((format(printf,2,3)));
150+
externint
151+
pg_printf(constchar*fmt,...)
152+
/* This extension allows gcc to check the format string */
153+
__attribute__((format(printf,1,2)));
154+
155155
/*
156156
*The GCC-specific code below prevents the __attribute__(... 'printf')
157157
*above from being replaced, and this is required because gcc doesn't

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp