We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fbb2e9a commit 0996e4bCopy full SHA for 0996e4b
src/pl/plperl/plperl.h
@@ -70,6 +70,31 @@
70
* before ppport.h, so use a #define flag to control inclusion here.
71
*/
72
#ifdef PG_NEED_PERL_XSUB_H
73
+/*
74
+ * On Windows, port_win32.h defines macros for a lot of these same functions.
75
+ * To avoid compiler warnings when XSUB.h redefines them, #undef our versions.
76
+ */
77
+#ifdef WIN32
78
+#undef accept
79
+#undef bind
80
+#undef connect
81
+#undef fopen
82
+#undef kill
83
+#undef listen
84
+#undef lstat
85
+#undef mkdir
86
+#undef open
87
+#undef putenv
88
+#undef recv
89
+#undef rename
90
+#undef select
91
+#undef send
92
+#undef socket
93
+#undef stat
94
+#undef unlink
95
+#undef vfprintf
96
+#endif
97
+
98
#include "XSUB.h"
99
#endif
100
0 commit comments