From 9d9bb6a81054322acdd11ea2f10e983500a70803 Mon Sep 17 00:00:00 2001 From: Mike McCormack Date: Sat, 18 Mar 2006 10:18:04 +0900 Subject: [PATCH] Prevent the use of windowsx.h with Wine source. --- include/windowsx.h | 5 +++++ 1 file changed, 5 insertions(+) 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