Prevent the use of windowsx.h with Wine source.

This commit is contained in:
Mike McCormack 2006-03-18 10:18:04 +09:00 committed by Alexandre Julliard
parent 3b397e5079
commit 9d9bb6a810
1 changed files with 5 additions and 0 deletions

View File

@ -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