From: John Tsiombikas Date: Sun, 21 Jan 2018 15:26:39 +0000 (+0200) Subject: win32 fixes X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=laserbrain_demo;a=commitdiff_plain;h=aa3642083aca7bc8ae394200fe3de5254c996a19 win32 fixes --- diff --git a/Makefile b/Makefile index 7f0d74c..dcdb394 100644 --- a/Makefile +++ b/Makefile @@ -32,7 +32,7 @@ libgl_mingw = -lopengl32 -lglu32 -lglew32 libal_Linux = -lopenal libal_Darwin = -framework OpenAL -libal_mingw = #? +libal_mingw = -lOpenAL32 ifeq ($(sys), mingw) bin = demo.exe diff --git a/src/timer.cc b/src/timer.cc index 95f6c0c..e20e21c 100644 --- a/src/timer.cc +++ b/src/timer.cc @@ -43,7 +43,7 @@ void sleep_msec(unsigned long msec) } #endif -#ifdef WIN32 +#if defined(WIN32) || defined(__WIN32__) #include #pragma comment(lib, "winmm.lib")