diff options
| author | Pietro Gagliardi <[email protected]> | 2014-03-16 10:34:12 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-03-16 10:34:12 -0400 |
| commit | 63f8033f49532fcbd294a40743348a8009ff81fd (patch) | |
| tree | 403ca4557172097cd1e2c71f755b7f637556f6f8 /gtk_unix.h | |
| parent | 7b95e735d68893aecf8d7419e4034480793e3c70 (diff) | |
Split out includes of <gtk/gtk.h> into a new header file so the GTK+ versioning macros can be included in all Go files, not just area_unix.go.
Diffstat (limited to 'gtk_unix.h')
| -rw-r--r-- | gtk_unix.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gtk_unix.h b/gtk_unix.h new file mode 100644 index 0000000..240ea61 --- /dev/null +++ b/gtk_unix.h @@ -0,0 +1,16 @@ +/* 16 march 2014 */ + +/* This header file is a convenience to ensure that the compatibility flags below are included in all Go files that include <gtk/gtk.h> */ + +/* +MIN_REQUIRED signals that programs are expected to run on at least GTK+ 3 .4 and thus deprectation warnings for newer versions (such as gtk_scrolled_window_add_with_viewport() being deprecated in GTK+ 3.8) should be suppressed. +MAX_ALLOWED signals that programs will not use features introduced in newer versions of GTK+ and that the compiler should warn us if we slip. +Thanks to desrt in irc.gimp.net/#gtk+ +*/ +#define GDK_VERSION_MIN_REQUIRED GDK_VERSION_3_4 +#define GDK_VERSION_MAX_ALLOWED GDK_VERSION_3_4 + +/* TODO are there equivalent compatibility macros for the other components of GTK+? */ + +#include <gtk/gtk.h> +/* TODO include <stdlib.h> too */ |
