Updated CMake build script for Windows. Moving away from MinGW requirement for build

This commit is contained in:
Joseph Henry
2017-12-19 16:23:52 -08:00
parent 3fe2ed6893
commit 402083a5d8
16 changed files with 163 additions and 133 deletions

View File

@@ -33,9 +33,14 @@
#ifndef LIBZT_SYSUTILS_H
#define LIBZT_SYSUTILS_H
#include <sys/time.h>
#include <stdint.h>
#ifdef _WIN32
#include <Windows.h>
#else
#include <sys/time.h>
#endif
/**
* @brief Returns the thread-id. Used in debug traces.
*
@@ -52,7 +57,7 @@ inline unsigned int gettid();
*/
inline uint64_t time_now()
{
#ifdef __WINDOWS__
#ifdef _WIN32
FILETIME ft;
SYSTEMTIME st;
ULARGE_INTEGER tmp;