Module: wine Branch: refs/heads/master Commit: 9d9bb6a81054322acdd11ea2f10e983500a70803 URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=9d9bb6a81054322acdd11ea2...
Author: Mike McCormack mike@codeweavers.com Date: Sat Mar 18 10:18:04 2006 +0900
Prevent the use of windowsx.h with Wine source.
---
include/windowsx.h | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/include/windowsx.h b/include/windowsx.h index 6bd3a2a..57074e5 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