mirror of
https://github.com/bkaradzic/bimg.git
synced 2026-02-17 20:52:38 +01:00
Windows build fixes
This commit is contained in:
2
3rdparty/astc/astc_weight_align.cpp
vendored
2
3rdparty/astc/astc_weight_align.cpp
vendored
@@ -37,6 +37,8 @@
|
||||
*/
|
||||
/*----------------------------------------------------------------------------*/
|
||||
|
||||
#define _USE_MATH_DEFINES // for M_PI on windows
|
||||
|
||||
#include <math.h>
|
||||
#include "astc_codec_internals.h"
|
||||
|
||||
|
||||
9
3rdparty/astc/mathlib.cpp
vendored
9
3rdparty/astc/mathlib.cpp
vendored
@@ -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
|
||||
**************************/
|
||||
|
||||
Reference in New Issue
Block a user