fix ubuntu precise mingw math.h problems

This commit is contained in:
Joshua Warner 2014-07-29 19:29:29 -06:00 committed by Joshua Warner
parent ce1a5f5c28
commit d47fcdc349

View File

@ -8,7 +8,6 @@
There is NO WARRANTY for this software. See license.txt for
details. */
#include "math.h"
#include "stdlib.h"
#include "time.h"
#include "string.h"
@ -19,6 +18,11 @@
#include "fcntl.h"
#include "ctype.h"
// Make sure M_* constants (in particular M_E) are exposed in math.h.
// This was a problem on the default mingw install on ubuntu precise
#undef __STRICT_ANSI__
#include "math.h"
#ifdef PLATFORM_WINDOWS
#include "windows.h"