Mercurial > sdl-ios-xcode
comparison src/joystick/dummy/SDL_sysjoystick.c @ 1167:435c2e481299
Date: Sat, 05 Nov 2005 17:46:48 +0900
From: Hayashi Naoyuki
Subject: SDL_numjoysticks: multiply defined
The following linker error is produced when I try to build SDL CVS on Tru64.
ld:
.libs/libSDL.lax/libjoystick.a/SDL_sysjoystick.o: SDL_numjoysticks:
multiply defined
SDL_numjoysticks is defined in both src/joystick/SDL_joystick.c:48: and
SDL12/src/joystick/dummy/SDL_sysjoystick.c:37:.
As a result, compilation produce "multiply defined" errors, when link.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sat, 05 Nov 2005 17:41:11 +0000 |
parents | 51a8702d8ecd |
children | c9b51268668f |
comparison
equal
deleted
inserted
replaced
1166:da33b7e6d181 | 1167:435c2e481299 |
---|---|
31 | 31 |
32 #include "SDL_error.h" | 32 #include "SDL_error.h" |
33 #include "SDL_joystick.h" | 33 #include "SDL_joystick.h" |
34 #include "SDL_sysjoystick.h" | 34 #include "SDL_sysjoystick.h" |
35 #include "SDL_joystick_c.h" | 35 #include "SDL_joystick_c.h" |
36 | |
37 Uint8 SDL_numjoysticks = 0; | |
38 | 36 |
39 /* Function to scan the system for joysticks. | 37 /* Function to scan the system for joysticks. |
40 * This function should set SDL_numjoysticks to the number of available | 38 * This function should set SDL_numjoysticks to the number of available |
41 * joysticks. Joystick 0 should be the system default joystick. | 39 * joysticks. Joystick 0 should be the system default joystick. |
42 * It should return 0, or -1 on an unrecoverable fatal error. | 40 * It should return 0, or -1 on an unrecoverable fatal error. |