Skip to content

Commit

Permalink
BUG: fix compilation with MSVC for strcasecmp
Browse files Browse the repository at this point in the history
  • Loading branch information
Dieter Vandenbussche committed Jul 26, 2013
1 parent 6d9fa7f commit 7a15bdd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pandas/parser.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ cdef extern from "headers/stdint.h":
enum: INT64_MAX
enum: INT64_MIN

cdef extern from "headers/portable.h":
pass

try:
basestring
except NameError:
Expand Down
8 changes: 8 additions & 0 deletions pandas/src/headers/portable.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#ifndef _PANDAS_PORTABLE_H_
#define _PANDAS_PORTABLE_H_

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

#endif

0 comments on commit 7a15bdd

Please sign in to comment.