Fix namespace issue

windows.h must be included in the main namespace on mingw64, otherwise there are loads of compile errors
This commit is contained in:
Ritchie Swann 2024-08-11 09:32:05 +01:00 committed by Rachael Alexanderson
parent 8f7b0ef4eb
commit e1e5ae16e2
No known key found for this signature in database
GPG key ID: 26A8ACCE97115EE0

View file

@ -31,8 +31,6 @@
**
*/
namespace FileSys {
#ifdef _WIN32
#ifndef _WINNT_
@ -40,6 +38,8 @@ namespace FileSys {
#include <windows.h>
#endif
namespace FileSys {
class FInternalCriticalSection
{
public:
@ -82,6 +82,8 @@ void LeaveCriticalSection(FInternalCriticalSection *c)
#include <pthread.h>
namespace FileSys {
class FInternalCriticalSection
{
public: