Mercurial > sdl-ios-xcode
comparison src/joystick/win32/SDL_mmjoystick.c @ 1635:92947e3a18db
Make sure code is only compiled if the appropriate subsystem is enabled
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Fri, 14 Apr 2006 04:46:47 +0000 |
parents | bb6839704ed6 |
children | 14717b52abc0 |
comparison
equal
deleted
inserted
replaced
1634:14f302c5b32c | 1635:92947e3a18db |
---|---|
18 | 18 |
19 Sam Lantinga | 19 Sam Lantinga |
20 slouken@libsdl.org | 20 slouken@libsdl.org |
21 */ | 21 */ |
22 #include "SDL_config.h" | 22 #include "SDL_config.h" |
23 | |
24 #ifdef SDL_JOYSTICK_WINMM | |
23 | 25 |
24 /* Win32 MultiMedia Joystick driver, contributed by Andrei de A. Formiga */ | 26 /* Win32 MultiMedia Joystick driver, contributed by Andrei de A. Formiga */ |
25 | 27 |
26 #define WIN32_LEAN_AND_MEAN | 28 #define WIN32_LEAN_AND_MEAN |
27 #include <windows.h> | 29 #include <windows.h> |
414 if ( ! errbuf[0] ) { | 416 if ( ! errbuf[0] ) { |
415 SDL_snprintf(errbuf, SDL_arraysize(errbuf), "%s: %s", function, error); | 417 SDL_snprintf(errbuf, SDL_arraysize(errbuf), "%s: %s", function, error); |
416 } | 418 } |
417 SDL_SetError("%s", errbuf); | 419 SDL_SetError("%s", errbuf); |
418 } | 420 } |
421 | |
422 #endif /* SDL_JOYSTICK_WINMM */ |