From 9b974a008810e3ddaa87134775c0c8c3d91aef9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C3=ABl=20Kooi?= <48814281+RA-Kooi@users.noreply.github.com> Date: Mon, 28 Oct 2019 04:53:02 +0100 Subject: [PATCH] Fix MingGW-w64 compiler errors --- include/EAStdC/EAStopwatch.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/EAStdC/EAStopwatch.h b/include/EAStdC/EAStopwatch.h index acae592..43ac26e 100644 --- a/include/EAStdC/EAStopwatch.h +++ b/include/EAStdC/EAStopwatch.h @@ -643,6 +643,11 @@ namespace StdC // You can disable usage of QueryPerformanceCounter below by defining // EASTDC_STOPWATCH_FORCE_CPU_CYCLE_USAGE as 1. // hardcode prototype here so we don't pull in + + #if !defined(_Out_) + #define _Out_ + #endif + extern "C" __declspec(dllimport) int __stdcall QueryPerformanceCounter(_Out_ union _LARGE_INTEGER *lpPerformanceCount); inline uint64_t EA::StdC::Stopwatch::GetStopwatchCycle()