[Scummvm-cvs-logs] SF.net SVN: scummvm:[45448] scummvm/trunk/tools/create_msvc/create_msvc.cpp

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Tue Oct 27 20:21:47 CET 2009


Revision: 45448
          http://scummvm.svn.sourceforge.net/scummvm/?rev=45448&view=rev
Author:   lordhoto
Date:     2009-10-27 19:21:47 +0000 (Tue, 27 Oct 2009)

Log Message:
-----------
Fix building under MSVC.

Modified Paths:
--------------
    scummvm/trunk/tools/create_msvc/create_msvc.cpp

Modified: scummvm/trunk/tools/create_msvc/create_msvc.cpp
===================================================================
--- scummvm/trunk/tools/create_msvc/create_msvc.cpp	2009-10-27 19:11:23 UTC (rev 45447)
+++ scummvm/trunk/tools/create_msvc/create_msvc.cpp	2009-10-27 19:21:47 UTC (rev 45448)
@@ -40,7 +40,7 @@
 #include <cstdlib>
 #include <ctime>
 
-#ifdef WIN32
+#if defined(_WIN32) || defined(WIN32)
 #include <windows.h>
 #else
 #include <sys/param.h>
@@ -705,7 +705,7 @@
 }
 
 std::string createUUID() {
-#ifdef WIN32
+#if defined(_WIN32) || defined(WIN32)
 	UUID uuid;
 	if (UuidCreate(&uuid) != RPC_S_OK)
 		error("UuidCreate failed");
@@ -1293,7 +1293,7 @@
  */
 FileList listDirectory(const std::string &dir) {
 	FileList result;
-#ifdef WIN32
+#if defined(_WIN32) || defined(WIN32)
 	WIN32_FIND_DATA fileInformation;
 	HANDLE fileHandle = FindFirstFile((dir + "/*").c_str(), &fileInformation);
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list