Skip to content

Instantly share code, notes, and snippets.

@hexgnu
Created February 8, 2018 03:26
Show Gist options
  • Save hexgnu/8790906639b0df0b1a27b56f267a2cae to your computer and use it in GitHub Desktop.
Save hexgnu/8790906639b0df0b1a27b56f267a2cae to your computer and use it in GitHub Desktop.
#ifndef _PANDAS_MATH_H_
#define _PANDAS_MATH_H_
#if defined(_MSC_VER) && (_MSC_VER < 1800)
#include <cmath>
namespace std {
__inline int signbit(double num) { return _copysign(1.0, num) < 0; }
}
#else
#include <cmath>
#endif
#endif
# OR
#ifndef _PANDAS_MATH_H_
#define _PANDAS_MATH_H_
#if defined(_MSC_VER) && (_MSC_VER < 1800)
#include <cmath>
using namespace std;
__inline int signbit(double num) { return _copysign(1.0, num) < 0; }
#else
#include <cmath>
#endif
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment