Thanks for finding this Rune. I can't connect to the repository at the moment but as soon as I can will commit the attached patch.

Regards, Alex.


Rune wrote:
This expression evaluates to true, when _MSC_VER is not defined, which
causes a compilation error on (at least) Linux.

game.c:35:28: windows.h: No such file or directory
game.c:37:17: #error *** BUILD FAILED: Need more recent SDKs or fix your
SDK paths in Tools Options ***
make[3]: *** [game.o] Error 1

/Rune
Index: D:/Development/FreeSCI/freesci/src/engine/game.c
===================================================================
--- D:/Development/FreeSCI/freesci/src/engine/game.c    (revision 1552)
+++ D:/Development/FreeSCI/freesci/src/engine/game.c    (working copy)
@@ -25,16 +25,17 @@
 
 ***************************************************************************/
 
-/* Attempt to guess if recent version of Platform SDK */
-#if _MSC_VER < 1300
-#      pragma message("******************** IMPORTANT MESSAGE 
********************")
-#      pragma message("You must have installed a recent Platform and DirectX 
SDK")
-#      pragma message("for this build to be successful. Download MS SDKs 
from:")
-#      pragma message("www.microsoft.com/msdownload/platformsdk/sdkupdate")
-#      pragma 
message("***********************************************************")
-#      include <windows.h>
-#      if (WINVER < 0x500)
-#              error *** BUILD FAILED: Need more recent SDKs or fix your SDK 
paths in Tools Options ***
+#ifdef _MSC_VER
+#      if _MSC_VER < 1300
+#              pragma message("******************** IMPORTANT MESSAGE 
********************")
+#              pragma message("You must have installed a recent Platform and 
DirectX SDK")
+#              pragma message("for this build to be successful. Download MS 
SDKs from:")
+#              pragma 
message("www.microsoft.com/msdownload/platformsdk/sdkupdate")
+#              pragma 
message("***********************************************************")
+#              include <windows.h>
+#              if (WINVER < 0x500)
+#                      error *** BUILD FAILED: Need more recent SDKs or fix 
your SDK paths in Tools Options ***
+#              endif
 #      endif
 #endif
 
_______________________________________________
FreeSCI-develop mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/freesci-develop

Reply via email to