Separated out catch_platform.h

This commit is contained in:
Phil Nash 2013-08-16 19:08:39 +01:00
parent 46118714b1
commit 638cf9feb4
5 changed files with 29 additions and 10 deletions

View file

@ -7,13 +7,14 @@
*/
#include "catch_timer.h"
#include "catch_platform.h"
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wc++11-long-long"
#endif
#ifdef WIN32
#ifdef CATCH_PLATFORM_WINDOWS
#include <windows.h>
#else
#include <sys/time.h>
@ -22,7 +23,7 @@
namespace Catch {
namespace {
#ifdef WIN32
#ifdef CATCH_PLATFORM_WINDOWS
uint64_t getCurrentTicks() {
static uint64_t hz=0, hzo=0;
if (!hz) {