We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
strdup
1 parent a1a2580 commit 455e4e0Copy full SHA for 455e4e0
pandas/_libs/src/headers/portable.h
@@ -1,8 +1,16 @@
1
#ifndef _PANDAS_PORTABLE_H_
2
#define _PANDAS_PORTABLE_H_
3
4
+// To get `strdup` from strings.h
5
+#ifndef _XOPEN_SOURCE
6
+#define _XOPEN_SOURCE 600
7
+#endif
8
+
9
+#include <string.h>
10
11
#if defined(_MSC_VER)
12
#define strcasecmp( s1, s2 ) _stricmp( s1, s2 )
13
+#define strdup _strdup
14
#endif
15
16
// GH-23516 - works around locale perf issues
pandas/_libs/src/ujson/lib/ultrajson.h
@@ -54,6 +54,7 @@ tree doesn't have cyclic references.
54
55
#include <stdio.h>
56
#include <wchar.h>
57
+#include "../../headers/portable.h"
58
59
// Don't output any extra whitespaces when encoding
60
#define JSON_NO_EXTRA_WHITESPACE
0 commit comments