From 60aabeeff3846ffc52860dae1e7bdaab43ae97d0 Mon Sep 17 00:00:00 2001 From: tobil4sk Date: Wed, 12 Apr 2023 16:08:09 +0100 Subject: [PATCH] Fix mingw check in System.hx HXCPP_MINGW does not get defined by hxcpp, so it may not always be set. --- src/lime/system/System.hx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lime/system/System.hx b/src/lime/system/System.hx index ac6975396..f85647302 100644 --- a/src/lime/system/System.hx +++ b/src/lime/system/System.hx @@ -32,9 +32,9 @@ import sys.io.Process; @:access(lime._internal.backend.native.NativeCFFI) @:access(lime.system.Display) @:access(lime.system.DisplayMode) -#if (cpp && windows && !HXCPP_MINGW && !lime_disable_gpu_hint) +#if (cpp && windows && !lime_disable_gpu_hint) @:cppFileCode(' -#if defined(HX_WINDOWS) +#if defined(HX_WINDOWS) && !defined(__MINGW32__) extern "C" { _declspec(dllexport) unsigned long NvOptimusEnablement = 0x00000001; _declspec(dllexport) int AmdPowerXpressRequestHighPerformance = 1;