From 25c9f7b37d1ba8d9fffef87a86be4b644f8d5a7d Mon Sep 17 00:00:00 2001 From: Paradox84 Date: Sat, 14 Dec 2024 23:47:47 +0300 Subject: [PATCH] Formatting fix --- source/core/slang-io.cpp | 4 ++-- source/core/slang-secure-crt.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/core/slang-io.cpp b/source/core/slang-io.cpp index 584a70eee7..5cfc2792f6 100644 --- a/source/core/slang-io.cpp +++ b/source/core/slang-io.cpp @@ -185,7 +185,7 @@ namespace Slang bool File::exists(const String& fileName) { -#if defined(_WIN32) && !defined(__MINGW32__ ) +#if defined(_WIN32) && !defined(__MINGW32__) struct _stat32 statVar; return ::_wstat32(((String)fileName).toWString(), &statVar) != -1; #else @@ -640,7 +640,7 @@ bool Path::createDirectoryRecursive(const String& path) /* static */ SlangResult Path::getPathType(const String& path, SlangPathType* pathTypeOut) { -#if defined(_WIN32) && !defined(__MINGW32__ ) +#if defined(_WIN32) && !defined(__MINGW32__) // https://msdn.microsoft.com/en-us/library/14h5k7ff.aspx struct _stat32 statVar; if (::_wstat32(String(path).toWString(), &statVar) == 0) diff --git a/source/core/slang-secure-crt.h b/source/core/slang-secure-crt.h index e3f25f6009..b1c98d9000 100644 --- a/source/core/slang-secure-crt.h +++ b/source/core/slang-secure-crt.h @@ -105,7 +105,7 @@ inline void strncpy_s( { strncpy(strDestination, strSource, count); } -#elif defined(__MINGW32__ ) +#elif defined(__MINGW32__) #include inline size_t fread_s( void* buffer,