| 1 |
#pragma once |
| 2 |
|
| 3 |
// unfortunately gtk includes gtkx includes gdkx includes X11/X*.h |
| 4 |
// where the latter brings in a whole slew of (evidently non-namespaced) define |
| 5 |
// so try to undefine some of the more nasty ones that might likely conflict |
| 6 |
#ifdef DestroyNotify |
| 7 |
#undef DestroyNotify |
| 8 |
#endif |
| 9 |
#ifdef Status |
| 10 |
#undef Status |
| 11 |
#endif |
| 12 |
|
| 13 |
// still part of GIR, but now not part of standard include (or pkg .pc) |
| 14 |
#if GTK_CHECK_VERSION(4, 0, 0) |
| 15 |
#ifdef G_OS_UNIX |
| 16 |
// needs include path specified in gtk4-unix-print.pc |
| 17 |
#include <gtk/gtkunixprint.h> |
| 18 |
#endif |
| 19 |
#endif |