Skip to content

Commit 7a15bdd

Browse files
author
Dieter Vandenbussche
committed
BUG: fix compilation with MSVC for strcasecmp
1 parent 6d9fa7f commit 7a15bdd

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

pandas/parser.pyx

+3
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ cdef extern from "headers/stdint.h":
5757
enum: INT64_MAX
5858
enum: INT64_MIN
5959

60+
cdef extern from "headers/portable.h":
61+
pass
62+
6063
try:
6164
basestring
6265
except NameError:

pandas/src/headers/portable.h

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#ifndef _PANDAS_PORTABLE_H_
2+
#define _PANDAS_PORTABLE_H_
3+
4+
#if defined(_MSC_VER)
5+
#define strcasecmp( s1, s2 ) _stricmp( s1, s2 )
6+
#endif
7+
8+
#endif

0 commit comments

Comments
 (0)