Skip to content

Commit 3db0e82

Browse files
cgohlkejreback
authored andcommitted
Use Visual Studio 2013+ signbit function
Use Visual Studio 2015+ stdint.h Don't define inline for Visual Studio 2015
1 parent a677217 commit 3db0e82

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

pandas/src/headers/math.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#ifndef _PANDAS_MATH_H_
22
#define _PANDAS_MATH_H_
33

4-
#if defined(_MSC_VER)
4+
#if defined(_MSC_VER) && (_MSC_VER < 1800)
55
#include <math.h>
66
__inline int signbit(double num) { return _copysign(1.0, num) < 0; }
77
#else

pandas/src/headers/stdint.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#ifndef _PANDAS_STDINT_H_
22
#define _PANDAS_STDINT_H_
33

4-
#if defined(_MSC_VER)
4+
#if defined(_MSC_VER) && (_MSC_VER < 1900)
55
#include "ms_stdint.h"
66
#else
77
#include <stdint.h>

pandas/src/msgpack/pack.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
extern "C" {
2727
#endif
2828

29-
#ifdef _MSC_VER
29+
#if defined(_MSC_VER) && (_MSC_VER < 1900)
3030
#define inline __inline
3131
#endif
3232

0 commit comments

Comments
 (0)