Allow non-gcc compilers to build xf86Xinput.c

This commit is contained in:
Alan Coopersmith 2008-10-21 20:30:35 -07:00
parent b7cc6ca22a
commit b015a021b2
2 changed files with 6 additions and 0 deletions

View File

@ -75,6 +75,11 @@
# endif
# endif /* __inline */
/* Support gcc's __FUNCTION__ for people using other compilers */
#if !defined(__GNUC__) && !defined(__FUNCTION__)
# define __FUNCTION__ __func__ /* C99 */
#endif
# if defined(NO_INLINE) || defined(DO_PROTOTYPES)
# if !defined(__arm__)

View File

@ -61,6 +61,7 @@
#include "xf86Optrec.h"
#include "mipointer.h"
#include "xf86InPriv.h"
#include "compiler.h"
#ifdef DPMSExtension
#define DPMS_SERVER