refactored platform precompiler variable: TORQUE_OS_WIN{32,64,}

This commit is contained in:
Thomas Fischer 2014-03-15 15:10:14 +01:00
parent 47a2cc165a
commit 6d8e0d7e25
31 changed files with 48 additions and 42 deletions

View file

@ -140,7 +140,7 @@ inline void catPath(char *dst, const char *src, U32 len)
// converts the posix root path "/" to "c:/" for win32
// FIXME: this is not ideal. the c: drive is not guaranteed to exist.
#if defined(TORQUE_OS_WIN32)
#if defined(TORQUE_OS_WIN)
static inline void _resolveLeadingSlash(char* buf, U32 size)
{
if(buf[0] != '/')
@ -227,7 +227,7 @@ char * Platform::makeFullPathName(const char *path, char *buffer, U32 size, cons
if(Platform::isFullPath(bspath))
{
// Already a full path
#if defined(TORQUE_OS_WIN32)
#if defined(TORQUE_OS_WIN)
_resolveLeadingSlash(bspath, sizeof(bspath));
#endif
dStrncpy(buffer, bspath, size);