This commit is contained in:
Glenn Maynard
2005-09-03 20:57:58 +00:00
parent fe6ee585e5
commit 6aa187a695
4 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -12,7 +12,7 @@
#include <sys/stat.h>
#endif
#if defined(_WIN32) && !defined(XBOX)
#if defined(WIN32) && !defined(XBOX)
#include <windows.h>
#endif
@@ -173,7 +173,7 @@ static CString GetDirOfExecutable( CString argv0 )
/* argv[0] can be wrong in most OS's; try to avoid using it. */
CString sPath;
#if defined(_WIN32)
#if defined(WIN32)
char buf[MAX_PATH];
GetModuleFileName( NULL, buf, sizeof(buf) );
sPath = buf;
@@ -186,7 +186,7 @@ static CString GetDirOfExecutable( CString argv0 )
bool IsAbsolutePath = false;
if( sPath.size() == 0 || sPath[0] == '/' )
IsAbsolutePath = true;
#if defined(_WIN32)
#if defined(WIN32)
if( sPath.size() > 2 && sPath[1] == ':' && sPath[2] == '/' )
IsAbsolutePath = true;
#endif