Add unity build support

This commit is contained in:
Jérôme Leclercq
2022-03-15 08:26:57 +01:00
parent 0a4fd8f56d
commit 6bd9f1a9e4
109 changed files with 964 additions and 680 deletions

View File

@@ -10,18 +10,22 @@
namespace Nz
{
namespace
namespace NAZARA_ANONYMOUS_NAMESPACE
{
LARGE_INTEGER s_frequency; // La fréquence ne varie pas pas au cours de l'exécution
}
bool ClockImplInitializeHighPrecision()
{
NAZARA_USE_ANONYMOUS_NAMESPACE
return QueryPerformanceFrequency(&s_frequency) != 0;
}
UInt64 ClockImplGetElapsedMicroseconds()
{
NAZARA_USE_ANONYMOUS_NAMESPACE
// http://msdn.microsoft.com/en-us/library/windows/desktop/ms644904(v=vs.85).aspx
//HANDLE thread = GetCurrentThread();
//DWORD oldMask = SetThreadAffinityMask(thread, 1);
@@ -43,3 +47,5 @@ namespace Nz
#endif
}
}
#include <Nazara/Core/AntiWindows.hpp>

View File

@@ -47,3 +47,5 @@ namespace Nz
}
}
}
#include <Nazara/Core/AntiWindows.hpp>

View File

@@ -45,3 +45,5 @@ namespace Nz
}
#endif // NAZARA_CORE_WIN32_FILEIMPL_HPP
#include <Nazara/Core/AntiWindows.hpp>

View File

@@ -110,3 +110,5 @@ namespace Nz
#endif
}
}
#include <Nazara/Core/AntiWindows.hpp>

View File

@@ -246,3 +246,5 @@ namespace Nz
std::unique_ptr<HANDLE[]> TaskSchedulerImpl::s_workerThreads; // Doivent être contigus
DWORD TaskSchedulerImpl::s_workerCount;
}
#include <Nazara/Core/AntiWindows.hpp>

View File

@@ -26,3 +26,5 @@ namespace Nz
return std::mktime(&timeinfo);
}
}
#include <Nazara/Core/AntiWindows.hpp>