SDL_numjoysticks

Uint8 SDL_numjoysticks = 0;
int SDL_NumJoysticks(void)

The same name for 2 different objects seems to confuse
the Symantec/DigitalMars linker
(I am trying to port SDL to DigitalMars C/C++ and maybe other
Windows 32 compilers)

Question : I wish to change the name of one of the two entities,
Should I change the function or the variable ?
(I just add a letter or sign to the name)

Anybody else trying to port SDL 1.2 to DM or SC or LccWin32 ?

TIA

Jean-Pierre Dumas

“Jean-Pierre H. Dumas” <jeanpierre.dumas at freesbee.fr> wrote:

Uint8 SDL_numjoysticks = 0;
int SDL_NumJoysticks(void)

The same name for 2 different objects seems to confuse
the Symantec/DigitalMars linker

seems like a hopelessly b0rken linker that smashes case. See if there is
any way to enable case-sensitivity. Otherwise we’ll have to work around it
in SDL, but I’d rather not because this is not a stable fix: since all
reasonable linkers are case-sensitive we’re likely to break your port at
any time

“Jean-Pierre H. Dumas” <jeanpierre.dumas at freesbee.fr> wrote:

Uint8 SDL_numjoysticks = 0;
int SDL_NumJoysticks(void)

The same name for 2 different objects seems to confuse
the Symantec/DigitalMars linker

seems like a hopelessly b0rken linker that smashes case. See if there is
any way to enable case-sensitivity. Otherwise we’ll have to work around it
in SDL, but I’d rather not because this is not a stable fix: since all
reasonable linkers are case-sensitive we’re likely to break your port at
any time

If you have to make a change, change the variable.

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment