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