From 9bdec1fdb29796587ed20e77715650e36d6f13a2 Mon Sep 17 00:00:00 2001 From: Alexey Andreev Date: Thu, 31 Oct 2019 14:37:49 +0300 Subject: [PATCH] C: fix the way how UWP env is detected in preprocessor --- core/src/main/resources/org/teavm/backend/c/definitions.h | 2 +- core/src/main/resources/org/teavm/backend/c/file.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/resources/org/teavm/backend/c/definitions.h b/core/src/main/resources/org/teavm/backend/c/definitions.h index ba20907e5..f3054a078 100644 --- a/core/src/main/resources/org/teavm/backend/c/definitions.h +++ b/core/src/main/resources/org/teavm/backend/c/definitions.h @@ -13,7 +13,7 @@ #pragma warning(disable:4102) #ifdef WINAPI_FAMILY - #if WINAPI_FAMILY == 2 || WINAPI_FAMILY == 3 || WINAPI_FAMILY == 5 + #if WINAPI_FAMILY == WINAPI_FAMILY_APP || WINAPI_FAMILY == 2 || WINAPI_FAMILY == 3 || WINAPI_FAMILY == 5 #undef TEAVM_WINDOWS_UWP #define TEAVM_WINDOWS_UWP 1 #endif diff --git a/core/src/main/resources/org/teavm/backend/c/file.c b/core/src/main/resources/org/teavm/backend/c/file.c index dad0fbe31..b0e86cd15 100644 --- a/core/src/main/resources/org/teavm/backend/c/file.c +++ b/core/src/main/resources/org/teavm/backend/c/file.c @@ -1,8 +1,8 @@ +#include "definitions.h" #include "file.h" #include "string.h" #include "time.h" #include "date.h" -#include "definitions.h" #include #include