]> asedeno.scripts.mit.edu Git - PuTTY.git/commit - unix/unix.h
Introduce a config option for building on OS X GTK.
authorSimon Tatham <anakin@pobox.com>
Mon, 31 Aug 2015 12:05:51 +0000 (13:05 +0100)
committerSimon Tatham <anakin@pobox.com>
Mon, 31 Aug 2015 12:21:50 +0000 (13:21 +0100)
commit1fa0b5a1ac21ae204f5514203e2fa1d5ea287a67
treea5355ac778ef72cd5689a4bb9ca01a70f82e98a9
parent7acb747a7d7e6835f07240f27b3b382155815600
Introduce a config option for building on OS X GTK.

Using GTK to run on OS X is going to require several workarounds and
behaviour tweaks to be enabled at various points in the code, and it's
already getting cumbersome to remember what they all are to put on the
command line. Here's a central #define (OSX_GTK) that enables them all
in one go, and a configure option (--with-quartz) that sets it.

As part of this commit, I've also rearranged the #include order in the
GTK source files, so that they include unix.h (which now might be
where NOT_X_WINDOWS gets defined) before they test NOT_X_WINDOWS to
decide whether to include X11 headers.
configure.ac
unix/gtkdlg.c
unix/gtkfont.c
unix/gtkwin.c
unix/unix.h