Date: Thu, 11 May 2006 19:08:05 -0400
authorSam Lantinga
Thu, 11 May 2006 23:32:11 +0000
changeset 18212f381b48b05c
parent 1820 133d55b02d51
child 1822 77656185d662
Date: Thu, 11 May 2006 19:08:05 -0400
From: Mike Frysinger
Subject: [SDL] [patch] remove limits.h hack from linux joystick code

there is a small hack in the current linux joystick code to work around broken
cross-compilers by including more than one limits.h ... at the very least,
this is not arm-specific by any means

i'm of the opinion that libsdl should not contain such things ... people
should be fixing their cross-compilers, not bloating other's source trees

patch attached to clean the cruft
-mike
src/joystick/linux/SDL_sysjoystick.c
     1.1 --- a/src/joystick/linux/SDL_sysjoystick.c	Thu May 11 23:26:45 2006 +0000
     1.2 +++ b/src/joystick/linux/SDL_sysjoystick.c	Thu May 11 23:32:11 2006 +0000
     1.3 @@ -30,9 +30,6 @@
     1.4  #include <fcntl.h>
     1.5  #include <sys/ioctl.h>
     1.6  #include <limits.h>		/* For the definition of PATH_MAX */
     1.7 -#ifdef __arm__
     1.8 -#include <linux/limits.h> /* Arm cross-compiler needs this */
     1.9 -#endif
    1.10  #include <linux/joystick.h>
    1.11  #if SDL_INPUT_LINUXEV
    1.12  #include <linux/input.h>