From 6c0d08022b81a1f9792c07861e50a2351d383f19 Mon Sep 17 00:00:00 2001 From: havoc Date: Tue, 25 Oct 2011 01:15:25 +0000 Subject: [PATCH] stupid hack - declare a prototype for keysym2ucs to suppress the prototype warning, this is being done only because it is not worth having a keysym2ucs.h file and the keysym2ucs.c file claims to be auto-generated... git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11469 d7cf8633-e32d-0410-b094-e92efae38249 --- keysym2ucs.c | 1 + vid_glx.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/keysym2ucs.c b/keysym2ucs.c index 05ac8135..b755ea4c 100644 --- a/keysym2ucs.c +++ b/keysym2ucs.c @@ -815,6 +815,7 @@ struct codepair { { 0x20ac, 0x20ac }, /* EuroSign € EURO SIGN */ }; +extern long keysym2ucs(KeySym keysym); // LordHavoc: suppress warning just in this case, it's not worth having a header file for this... long keysym2ucs(KeySym keysym) { int min = 0; diff --git a/vid_glx.c b/vid_glx.c index 1c5f8bf4..9ac4e02f 100644 --- a/vid_glx.c +++ b/vid_glx.c @@ -147,7 +147,7 @@ static Colormap vidx11_colormap; /*-----------------------------------------------------------------------*/ // -long keysym2ucs(KeySym keysym); +extern long keysym2ucs(KeySym keysym); // LordHavoc: suppress warning just in this case, it's not worth having a header file for this... static void DP_Xutf8LookupString(XKeyEvent * ev, Uchar *uch, KeySym * keysym_return, -- 2.39.2