aboutsummaryrefslogtreecommitdiff
path: root/dep/CascLib/src/common/Common.cpp
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2021-10-01 13:47:03 +0200
committerShauren <shauren.trinity@gmail.com>2021-10-01 13:47:03 +0200
commit4e71c5b685da4162c8271baf820ba8312dd7c90c (patch)
tree0c879f9a011554c5c531686eea01e425f9ce5f30 /dep/CascLib/src/common/Common.cpp
parent4d153b6cb9d633408047e19f28428c52db3d81f6 (diff)
Dep/CascLib: Update to ladislav-zezula/CascLib@4fc4c18bd5a49208337199a7f4256271675cae44
Diffstat (limited to 'dep/CascLib/src/common/Common.cpp')
-rw-r--r--dep/CascLib/src/common/Common.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/dep/CascLib/src/common/Common.cpp b/dep/CascLib/src/common/Common.cpp
index 953a4f0b129..ac06e8df53e 100644
--- a/dep/CascLib/src/common/Common.cpp
+++ b/dep/CascLib/src/common/Common.cpp
@@ -81,7 +81,7 @@ static DWORD dwLastError = ERROR_SUCCESS;
DWORD GetCascError()
{
-#ifdef PLATFORM_WINDOWS
+#ifdef CASCLIB_PLATFORM_WINDOWS
return GetLastError();
#else
return dwLastError;
@@ -90,7 +90,7 @@ DWORD GetCascError()
void SetCascError(DWORD dwErrCode)
{
-#ifdef PLATFORM_WINDOWS
+#ifdef CASCLIB_PLATFORM_WINDOWS
SetLastError(dwErrCode);
#endif
dwLastError = dwErrCode;
@@ -301,7 +301,7 @@ size_t CascStrPrintf(char * buffer, size_t nCount, const char * format, ...)
// Start the argument list
va_start(argList, format);
-#ifdef PLATFORM_WINDOWS
+#ifdef CASCLIB_PLATFORM_WINDOWS
StringCchVPrintfExA(buffer, nCount, &buffend, NULL, 0, format, argList);
// buffend = buffer + vsnprintf(buffer, nCount, format, argList);
#else
@@ -321,7 +321,7 @@ size_t CascStrPrintf(wchar_t * buffer, size_t nCount, const wchar_t * format, ..
// Start the argument list
va_start(argList, format);
-#ifdef PLATFORM_WINDOWS
+#ifdef CASCLIB_PLATFORM_WINDOWS
StringCchVPrintfExW(buffer, nCount, &buffend, NULL, 0, format, argList);
// buffend = buffer + vswprintf(buffer, nCount, format, argList);
#else