simon-git: putty (master): Simon Tatham

Commits to Tartarus hosted VCS tartarus-commits at lists.tartarus.org
Tue Mar 12 08:07:22 GMT 2019


TL;DR:
  f098dc74 Fix build failures under GTK 1.

Repository:     https://git.tartarus.org/simon/putty.git
On the web:     https://git.tartarus.org/?p=simon/putty.git
Branch updated: master
Committer:      Simon Tatham <anakin at pobox.com>
Date:           2019-03-12 08:07:22

commit f098dc748d3381789b4fa6a276b1d6bc1e15fc5d
web diff https://git.tartarus.org/?p=simon/putty.git;a=commitdiff;h=f098dc748d3381789b4fa6a276b1d6bc1e15fc5d;hp=ba91e4b996fef320c0a703bc3021f081270ee3c1
Author: Simon Tatham <anakin at pobox.com>
Date:   Tue Mar 12 07:52:52 2019 +0000

    Fix build failures under GTK 1.
    
    My previous dodge to make the GTK 1 headers work with modern compilers
    was to manually reset to -std=gnu89, which changed the semantics of
    'inline' back to what glib.h was expecting. But that doesn't work now
    the PuTTY code base expects to be able to use the rest of C99, so
    instead I have to manually override the specific #defines that glib.h
    uses to know how 'inline' works.
    
    Also, moved that code in configure.ac out of the fallback branch that
    manually detects GTK1, so that it will fire even if autoconf is run on
    a system that still has the genuine GTK1 detection code. (Amazingly,
    one still exists that I have access to!)
    
    With that fixed, there's one more problem: the nethack_mode and
    app_keypad_mode flags in gtkwin.c's key_event() are only used in the
    GTK >= 2 branch of the ifdefs, so they should only be declared and set
    in that branch as well, on pain of a -Wunused complaint.

 configure.ac  | 19 +++++++++++++++----
 unix/gtkwin.c |  9 ++++-----
 2 files changed, 19 insertions(+), 9 deletions(-)



More information about the tartarus-commits mailing list