From: havoc Date: Tue, 25 Oct 2011 01:15:25 +0000 (+0000) Subject: stupid hack - declare a prototype for keysym2ucs to suppress the X-Git-Tag: xonotic-v0.6.0~163^2~88 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=6c0d08022b81a1f9792c07861e50a2351d383f19;p=xonotic%2Fdarkplaces.git 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 --- 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,