From b278caf1528c5d88b641273453eeb78a40e9d100 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Mon, 1 Apr 2019 12:21:25 +0200 Subject: [PATCH] include: Disallow using unicode.h when building against msvcrt. Signed-off-by: Alexandre Julliard --- include/wine/unicode.h | 4 ++++ programs/xcopy/xcopy.c | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/include/wine/unicode.h b/include/wine/unicode.h index 22bb6ddf3fb..ff6f6568a53 100644 --- a/include/wine/unicode.h +++ b/include/wine/unicode.h @@ -31,6 +31,10 @@ #error This file should not be used in Wine tests #endif +#ifdef __WINE_USE_MSVCRT +#error This file should not be used with msvcrt headers +#endif + #ifdef __cplusplus extern "C" { #endif diff --git a/programs/xcopy/xcopy.c b/programs/xcopy/xcopy.c index eb8c3f04ef0..0d31d7c7d91 100644 --- a/programs/xcopy/xcopy.c +++ b/programs/xcopy/xcopy.c @@ -46,7 +46,6 @@ #include #include #include -#include #include "xcopy.h" WINE_DEFAULT_DEBUG_CHANNEL(xcopy);