Windows build fixes

This commit is contained in:
Andrew Willmott
2018-07-24 16:22:00 +01:00
parent 03ad3921ef
commit 85e79c248d
2 changed files with 11 additions and 0 deletions

View File

@@ -37,6 +37,8 @@
*/
/*----------------------------------------------------------------------------*/
#define _USE_MATH_DEFINES // for M_PI on windows
#include <math.h>
#include "astc_codec_internals.h"

View File

@@ -13,12 +13,21 @@
*/
/*----------------------------------------------------------------------------*/
#define _USE_MATH_DEFINES // for M_PI on windows
#include <time.h>
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include "mathlib.h"
#ifdef WIN32
double cbrt(double n)
{
return n < 0 ? -pow(-n, 1.0 / 3.0) : pow(n, 1.0 / 3.0);
}
#endif
/**************************
basic OpenCL functions
**************************/