mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-02-16 17:21:10 +00:00
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:
parent
8f7b0ef4eb
commit
e1e5ae16e2
1 changed files with 4 additions and 2 deletions
|
@ -31,8 +31,6 @@
|
||||||
**
|
**
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace FileSys {
|
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
|
|
||||||
#ifndef _WINNT_
|
#ifndef _WINNT_
|
||||||
|
@ -40,6 +38,8 @@ namespace FileSys {
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
namespace FileSys {
|
||||||
|
|
||||||
class FInternalCriticalSection
|
class FInternalCriticalSection
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@ -82,6 +82,8 @@ void LeaveCriticalSection(FInternalCriticalSection *c)
|
||||||
|
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
|
|
||||||
|
namespace FileSys {
|
||||||
|
|
||||||
class FInternalCriticalSection
|
class FInternalCriticalSection
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
Loading…
Reference in a new issue