pingus-cvs
[Top][All Lists]
Advanced

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

[Pingus-CVS] CVS: Games/Pingus/src system.cxx,1.9,1.10


From: torangan
Subject: [Pingus-CVS] CVS: Games/Pingus/src system.cxx,1.9,1.10
Date: 16 Mar 2003 10:40:38 -0000

Update of /usr/local/cvsroot/Games/Pingus/src
In directory dark:/tmp/cvs-serv10400/src

Modified Files:
        system.cxx 
Log Message:
patches to allow compiling on VC++ again


Index: system.cxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/system.cxx,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- system.cxx  7 Mar 2003 18:49:20 -0000       1.9
+++ system.cxx  16 Mar 2003 10:40:36 -0000      1.10
@@ -442,14 +442,22 @@
   return to_string (checksum);
 }
 
+
 unsigned int
 System::get_mtime(const std::string& filename)
 {
+#ifndef WIN32
+
   struct stat stat_buf;
   if (stat(filename.c_str(), &stat_buf) == 0)
     return stat_buf.st_mtime;
   else
     return 0;
+    
+#else
+    return 0;
+#endif
 }
+
 
 /* EOF */





reply via email to

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