#include <CoreFoundation/CoreFoundation.h>
#endif
+#ifndef _WIN32 // Posix
+ #include <sys/time.h>
+ #include <time.h>
+ #if defined(__MACH__) && defined(__APPLE__)
+ #include <mach/clock.h>
+ #include <mach/mach.h>
+ #endif
+#endif
+
namespace porting
{
Overflow can occur at any value higher than 10000000.
*/
#ifdef _WIN32 // Windows
-#ifndef _WIN32_WINNT
- #define _WIN32_WINNT 0x0501
-#endif
- #include <windows.h>
inline u32 getTimeS()
{
}
#else // Posix
-#include <sys/time.h>
-#include <time.h>
-#if defined(__MACH__) && defined(__APPLE__)
-#include <mach/clock.h>
-#include <mach/mach.h>
-#endif
inline u32 getTimeS()
{
#include <sys/processor.h>
#elif defined(__APPLE__)
#include <mach/mach_init.h>
- #include <mach/thread_policy.h>
+ #include <mach/thread_act.h>
#endif