Skip to content

Commit faafbae

Browse files
committed
If these are ifdef WIN32 in the .c file, should be so in .h as well.
1 parent d5fc378 commit faafbae

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/08 06:44:35 momjian Exp $
24+
* $PostgreSQL: pgsql/src/include/utils/palloc.h,v 1.29 2004/08/08 16:13:05 tgl Exp $
2525
*
2626
*-------------------------------------------------------------------------
2727
*/
@@ -80,9 +80,10 @@ extern char *MemoryContextStrdup(MemoryContext context, const char *string);
8080

8181
#define pstrdup(str) MemoryContextStrdup(CurrentMemoryContext, (str))
8282

83-
/* Used for Win32 */
84-
void *pgport_palloc(Size sz);
85-
char *pgport_pstrdup(const char *str);
86-
void pgport_pfree(void *pointer);
83+
#ifdef WIN32
84+
extern void *pgport_palloc(Size sz);
85+
extern char *pgport_pstrdup(const char *str);
86+
extern void pgport_pfree(void *pointer);
87+
#endif
8788

8889
#endif /* PALLOC_H */

0 commit comments

Comments
 (0)