dinput: Undefine SW_MAX to avoid possible conflicts with winuser.h.

This commit is contained in:
Alexandre Julliard 2007-01-22 12:11:04 +01:00
parent 61b993437f
commit 4ae5b9fd33
3 changed files with 3 additions and 0 deletions

View file

@ -27,6 +27,7 @@
#include <string.h>
#ifdef HAVE_LINUX_INPUT_H
# include <linux/input.h>
# undef SW_MAX
#endif
#include <errno.h>
#ifdef HAVE_UNISTD_H

View file

@ -52,6 +52,7 @@
#endif
#ifdef HAVE_LINUX_JOYSTICK_H
# include <linux/joystick.h>
# undef SW_MAX
#endif
#ifdef HAVE_SYS_POLL_H
# include <sys/poll.h>

View file

@ -44,6 +44,7 @@
#endif
#ifdef HAVE_LINUX_INPUT_H
# include <linux/input.h>
# undef SW_MAX
# if defined(EVIOCGBIT) && defined(EV_ABS) && defined(BTN_PINKIE)
# define HAVE_CORRECT_LINUXINPUT_H
# endif