Fix buggy preprocessor conditional

This commit is contained in:
Michael Martin
2019-10-06 22:25:37 -07:00
parent 6c7a4e35e6
commit 5682c41778
+3 -1
View File
@@ -33,7 +33,7 @@
static int kbdhead=0, kbdtail=0;
static UniChar kbdbuf[KBDBUFSIZE];
static UniChar lastchar;
#ifdef SDL_MAJOR_VERSION == 1
#if SDL_MAJOR_VERSION == 1
static unsigned int num_keys = 0;
static int *kbdstate = NULL;
// Holds all SDL keys +1 for holding invalid values
@@ -280,7 +280,9 @@ TFB_UninitInput (void)
{
VControl_Uninit ();
HFree (controls);
#if SDL_MAJOR_VERSION == 1
HFree (kbdstate);
#endif
}
void