]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
stupid hack - declare a prototype for keysym2ucs to suppress the
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 25 Oct 2011 01:15:25 +0000 (01:15 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 25 Oct 2011 01:15:25 +0000 (01:15 +0000)
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
vid_glx.c

index 05ac8135ed06748d9682ba7491e5c2f5e8c2ef87..b755ea4cec4e15346325b9d482ae1bc2fd550593 100644 (file)
@@ -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;
index 1c5f8bf47b579ac09005c3b7f83f4f27f9adf1df..9ac4e02fab1e54c66e3c3d22daa71d25df10fa28 100644 (file)
--- 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,