Commit 4c0c5649 authored by Peter Eastman's avatar Peter Eastman
Browse files

Fixed compilation problems under Windows

parent f6352d88
......@@ -32,6 +32,9 @@
* USE OR OTHER DEALINGS IN THE SOFTWARE. *
* -------------------------------------------------------------------------- */
#ifdef _MSC_VER
#define _USE_MATH_DEFINES
#endif
#include <cmath>
/** \file
......
......@@ -6,10 +6,18 @@
extern "C" {
#endif
#ifdef _MSC_VER
/* define the bitmask_t type as an integer of sufficient size */
typedef unsigned long long bitmask_t;
/* define the halfmask_t type as an integer of 1/2 the size of bitmask_t */
typedef unsigned long halfmask_t;
typedef unsigned int halfmask_t;
#else
#include <stdint.h>
/* define the bitmask_t type as an integer of sufficient size */
typedef uint64_t bitmask_t;
/* define the halfmask_t type as an integer of 1/2 the size of bitmask_t */
typedef uint32_t halfmask_t;
#endif
/*****************************************************************
* hilbert_i2c
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment