Some Mac OS X fixes.

Joystick was more stubborn than it should have been.
This commit is contained in:
Jason Felds
2013-05-02 22:47:16 -04:00
parent dba1c7f69a
commit a4798fbd5d
2 changed files with 1 additions and 10 deletions
+1 -1
View File
@@ -262,7 +262,7 @@ int JoystickDevice::AssignIDs( InputDevice startID )
void JoystickDevice::GetDevicesAndDescriptions( vector<InputDeviceInfo>& vDevices ) const
{
for (Joystick &i : m_vSticks)
for (auto &i : m_vSticks)
vDevices.push_back( InputDeviceInfo(i.id,GetDescription()) );
}
-9
View File
@@ -43,16 +43,7 @@ extern "C" int SM_main( int argc, char *argv[] );
#define ArchSwap16(n) OSSwapInt16((n))
#define HAVE_BYTE_SWAPS
// Define the work around if needed.
#include <unistd.h>
#include <stdint.h>
#if _GLIBCXX_USE_C99
# define NEED_CSTDLIB_WORKAROUND
#else
inline int64_t llabs( int64_t x ) { return x < 0LL ? -x : x; }
#endif
#define attribute_deprecated // Shut ffmpeg up!
#endif