win32 fixes
authorJohn Tsiombikas <nuclear@member.fsf.org>
Sun, 21 Jan 2018 15:26:39 +0000 (17:26 +0200)
committerJohn Tsiombikas <nuclear@member.fsf.org>
Sun, 21 Jan 2018 15:26:39 +0000 (17:26 +0200)
Makefile
src/timer.cc

index 7f0d74c..dcdb394 100644 (file)
--- 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
index 95f6c0c..e20e21c 100644 (file)
@@ -43,7 +43,7 @@ void sleep_msec(unsigned long msec)
 }
 #endif
 
-#ifdef WIN32
+#if defined(WIN32) || defined(__WIN32__)
 #include <windows.h>
 #pragma comment(lib, "winmm.lib")