Skip to content

Commit

Permalink
Formatting fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Parad0x84 committed Dec 16, 2024
1 parent f25f9ea commit 327ca41
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions source/core/slang-io.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion source/core/slang-secure-crt.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ inline void strncpy_s(
{
strncpy(strDestination, strSource, count);
}
#elif defined(__MINGW32__ )
#elif defined(__MINGW32__)
#include <stdio.h>
inline size_t fread_s(
void* buffer,
Expand Down

0 comments on commit 327ca41

Please sign in to comment.