Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions pandas/_libs/src/headers/portable.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
#ifndef _PANDAS_PORTABLE_H_
#define _PANDAS_PORTABLE_H_

// To get `strdup` from strings.h
#ifndef _XOPEN_SOURCE
#define _XOPEN_SOURCE 600
#endif

#include <string.h>

#if defined(_MSC_VER)
#define strcasecmp( s1, s2 ) _stricmp( s1, s2 )
#define strdup _strdup
#endif

// GH-23516 - works around locale perf issues
Expand Down
1 change: 1 addition & 0 deletions pandas/_libs/src/ujson/lib/ultrajson.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ tree doesn't have cyclic references.

#include <stdio.h>
#include <wchar.h>
#include "../../headers/portable.h"

// Don't output any extra whitespaces when encoding
#define JSON_NO_EXTRA_WHITESPACE
Expand Down