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

Commitfaafbae

Browse files
committed
If these are ifdef WIN32 in the .c file, should be so in .h as well.
1 parentd5fc378 commitfaafbae

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

‎src/include/utils/palloc.h

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
2222
* Portions Copyright (c) 1994, Regents of the University of California
2323
*
24-
* $PostgreSQL: pgsql/src/include/utils/palloc.h,v 1.28 2004/08/0806:44:35 momjian Exp $
24+
* $PostgreSQL: pgsql/src/include/utils/palloc.h,v 1.29 2004/08/0816:13:05 tgl Exp $
2525
*
2626
*-------------------------------------------------------------------------
2727
*/
@@ -80,9 +80,10 @@ extern char *MemoryContextStrdup(MemoryContext context, const char *string);
8080

8181
#definepstrdup(str) MemoryContextStrdup(CurrentMemoryContext, (str))
8282

83-
/* Used for Win32 */
84-
void*pgport_palloc(Sizesz);
85-
char*pgport_pstrdup(constchar*str);
86-
voidpgport_pfree(void*pointer);
83+
#ifdefWIN32
84+
externvoid*pgport_palloc(Sizesz);
85+
externchar*pgport_pstrdup(constchar*str);
86+
externvoidpgport_pfree(void*pointer);
87+
#endif
8788

8889
#endif/* PALLOC_H */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp