diff --git a/include/PR/ultratypes.h b/include/PR/ultratypes.h index ddff2827..7c35d291 100644 --- a/include/PR/ultratypes.h +++ b/include/PR/ultratypes.h @@ -31,6 +31,7 @@ typedef double f64; #include #include +#include #if defined(__MINGW32__) #include <_mingw.h> #if !defined(__MINGW64_VERSION_MAJOR) diff --git a/src/pc/gfx/gfx_pc.c b/src/pc/gfx/gfx_pc.c index 01bea71f..51fe919a 100644 --- a/src/pc/gfx/gfx_pc.c +++ b/src/pc/gfx/gfx_pc.c @@ -40,6 +40,8 @@ #define MAX_LIGHTS 2 #define MAX_VERTICES 64 +#define CLOCK_MONOTONIC 0 + struct RGBA { uint8_t r, g, b, a; }; @@ -159,7 +161,6 @@ static struct GfxRenderingAPI *gfx_rapi; #include <_mingw.h> #if !defined(__MINGW64_VERSION_MAJOR) #include -#define CLOCK_MONOTONIC 0 //https://stackoverflow.com/questions/5404277/porting-clock-gettime-to-windows struct timespec { long tv_sec; long tv_nsec; }; //header part int clock_gettime(int arg, struct timespec *spec) //C-file part