We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0b59b0e commit d5d7f7fCopy full SHA for d5d7f7f
src/pl/plperl/plperl.h
@@ -40,10 +40,15 @@
40
41
/*
42
* ActivePerl 5.18 and later are MinGW-built, and their headers use GCC's
43
- * __inline__. Translate to something MSVC recognizes.
+ * __inline__. Translate to something MSVC recognizes. Also, perl.h sometimes
44
+ * defines isnan, so undefine it here and put back the definition later if
45
+ * perl.h doesn't.
46
*/
47
#ifdef _MSC_VER
48
#define __inline__ inline
49
+#ifdef isname
50
+#undef isnan
51
+#endif
52
#endif
53
54
@@ -135,6 +140,13 @@
135
140
#define vprintf pg_vprintf
136
141
#define printf(...) pg_printf(__VA_ARGS__)
137
142
143
+/* put back the definition of isnan if needed */
144
+#ifdef _MSC_VER
145
+#ifndef isnan
146
+#define isnan(x) _isnan(x)
147
148
149
+
138
150
/* perl version and platform portability */
139
151
#define NEED_eval_pv
152
#define NEED_newRV_noinc
0 commit comments