@@ -37,6 +37,8 @@
*/
/*----------------------------------------------------------------------------*/
+#define _USE_MATH_DEFINES // for M_PI on windows
+
#include <math.h>
#include "astc_codec_internals.h"
@@ -13,12 +13,21 @@
#include <time.h>
#include <stdlib.h>
#include <stdio.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
**************************/