freesci-develop
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [freesci-develop] r1552 - in freesci/trunk: . src/engine src/gfx/dri


From: Alex Angas
Subject: Re: [freesci-develop] r1552 - in freesci/trunk: . src/engine src/gfx/drivers src/menu src/win32
Date: Wed, 15 Feb 2006 17:50:25 +1100
User-agent: Thunderbird 1.5 (Windows/20051201)

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
 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]