Patch: fix 0.7.10 compilation


Subject: Patch: fix 0.7.10 compilation
From: Bernhard Rosenkraenzer (bero@redhat.de)
Date: Fri Jun 16 2000 - 16:23:56 CDT


Hi,
Out of the box, 0.7.10 doesn't compile on gcc 2.96 systems.
I've submitted this patch before, but apparently it didn't get in because
it makes the code look a bit ugly...

There's a lot of stuff like

         if (strncmp (str, "Ctrl+", 5) == 0) {
- ac_mods |= GDK_CONTROL_MASK;
+ ac_mods = (GdkModifierType)(ac_mods|GDK_CONTROL_MASK);
                 str += 5;
         }

This stuff looks like nonsense, but gcc 2.96 won't accept the nice
(==old) version, because GdkModifierType|GdkModifierType==int and int
isn't auto-converted to GdkModifierType.

I'm not 100% sure if this is standards compliance or a gcc bug; in any
case, the ugly (==new) version does the same and works with gcc 2.96.

LLaP
bero




This archive was generated by hypermail 2b25 : Fri Jun 16 2000 - 16:24:06 CDT