Fix buggy preprocessor conditional
This commit is contained in:
@@ -33,7 +33,7 @@
|
|||||||
static int kbdhead=0, kbdtail=0;
|
static int kbdhead=0, kbdtail=0;
|
||||||
static UniChar kbdbuf[KBDBUFSIZE];
|
static UniChar kbdbuf[KBDBUFSIZE];
|
||||||
static UniChar lastchar;
|
static UniChar lastchar;
|
||||||
#ifdef SDL_MAJOR_VERSION == 1
|
#if SDL_MAJOR_VERSION == 1
|
||||||
static unsigned int num_keys = 0;
|
static unsigned int num_keys = 0;
|
||||||
static int *kbdstate = NULL;
|
static int *kbdstate = NULL;
|
||||||
// Holds all SDL keys +1 for holding invalid values
|
// Holds all SDL keys +1 for holding invalid values
|
||||||
@@ -280,7 +280,9 @@ TFB_UninitInput (void)
|
|||||||
{
|
{
|
||||||
VControl_Uninit ();
|
VControl_Uninit ();
|
||||||
HFree (controls);
|
HFree (controls);
|
||||||
|
#if SDL_MAJOR_VERSION == 1
|
||||||
HFree (kbdstate);
|
HFree (kbdstate);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|||||||
Reference in New Issue
Block a user