r779 - trunk/code/client

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sat May 13 08:18:43 EDT 2006


Author: thilo
Date: 2006-05-13 08:18:43 -0400 (Sat, 13 May 2006)
New Revision: 779

Modified:
   trunk/code/client/qal.h
Log:
Corrected #include directives of openal headers for MSVC.

Modified: trunk/code/client/qal.h
===================================================================
--- trunk/code/client/qal.h	2006-05-09 19:30:46 UTC (rev 778)
+++ trunk/code/client/qal.h	2006-05-13 12:18:43 UTC (rev 779)
@@ -37,9 +37,15 @@
 #include "../AL/al.h"
 #include "../AL/alc.h"
 #else
-#include <AL/al.h>
-#include <AL/alc.h>
+#ifdef _MSC_VER
+  // MSVC users must install the OpenAL SDK which doesn't use the AL/*.h scheme.
+  #include <al.h>
+  #include <alc.h>
+#else
+  #include <AL/al.h>
+  #include <AL/alc.h>
 #endif
+#endif
 
 #if USE_OPENAL_DLOPEN
 extern LPALENABLE qalEnable;




More information about the quake3-commits mailing list