File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 40
40
41
41
/*
42
42
* ActivePerl 5.18 and later are MinGW-built, and their headers use GCC's
43
- * __inline__. Translate to something MSVC recognizes.
43
+ * __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.
44
46
*/
45
47
#ifdef _MSC_VER
46
48
#define __inline__ inline
49
+ #ifdef isname
50
+ #undef isnan
51
+ #endif
47
52
#endif
48
53
49
54
/*
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
+ #endif
148
+ #endif
149
+
138
150
/* perl version and platform portability */
139
151
#define NEED_eval_pv
140
152
#define NEED_newRV_noinc
You can’t perform that action at this time.
0 commit comments