diff --git a/include/windowsx.h b/include/windowsx.h index 6bd3a2a4d90..57074e5be47 100644 --- a/include/windowsx.h +++ b/include/windowsx.h @@ -22,6 +22,11 @@ extern "C" { #endif +#ifdef __WINESRC__ +/* This file contains macros that cause warnings on gcc 4.1, so avoid it. */ +#error Please avoid use of windowsx.h in Wine source code. +#endif + #ifndef SNDMSG #ifdef __cplusplus #define SNDMSG ::SendMessage