Mercurial > sdl-ios-xcode
comparison src/joystick/linux/SDL_sysjoystick.c @ 1821:2f381b48b05c
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
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 11 May 2006 23:32:11 +0000 |
parents | 97f20f2a1d85 |
children | c121d94672cb 746aa4852f87 |
comparison
equal
deleted
inserted
replaced
1820:133d55b02d51 | 1821:2f381b48b05c |
---|---|
28 #include <sys/stat.h> | 28 #include <sys/stat.h> |
29 #include <unistd.h> | 29 #include <unistd.h> |
30 #include <fcntl.h> | 30 #include <fcntl.h> |
31 #include <sys/ioctl.h> | 31 #include <sys/ioctl.h> |
32 #include <limits.h> /* For the definition of PATH_MAX */ | 32 #include <limits.h> /* For the definition of PATH_MAX */ |
33 #ifdef __arm__ | |
34 #include <linux/limits.h> /* Arm cross-compiler needs this */ | |
35 #endif | |
36 #include <linux/joystick.h> | 33 #include <linux/joystick.h> |
37 #if SDL_INPUT_LINUXEV | 34 #if SDL_INPUT_LINUXEV |
38 #include <linux/input.h> | 35 #include <linux/input.h> |
39 #endif | 36 #endif |
40 | 37 |