51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#ifdef HAVE_MINGW
+#ifdef HAVE_WINDOWS
#define WINVER 0x0600
#define _WIN32_WINNT 0x0600
#define WIN32_LEAN_AND_MEAN
#include <math.h>
#include <time.h>
+#ifdef HAVE_STATIC_ASSERT
+#define STATIC_ASSERT(expr, msg) _Static_assert((expr), msg)
+#else
+#define STATIC_ASSERT(check, msg)
+#endif
+
#ifdef HAVE_ALLOCA_H
#include <alloca.h>
#elif defined(HAVE_NETBSD)
#define alloca(size) __builtin_alloca(size)
#endif
-#ifdef HAVE_MINGW
+#ifdef HAVE_WINDOWS
#ifdef HAVE_W32API_H
#include <w32api.h>
#endif
#include <process.h>
#include <direct.h>
#endif
-#endif // HAVE_MINGW
+#endif // HAVE_WINDOWS
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#undef STATUS
#endif
-#ifdef HAVE_MINGW
+#ifdef HAVE_WINDOWS
#define SLASH "\\"
#else
#define SLASH "/"