File: gtk_setup_post_def.hpp

package info (click to toggle)
cppgir 2.0%2Bgit20250629.2a7d9ce-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,220 kB
  • sloc: cpp: 16,451; ansic: 355; python: 86; makefile: 13; sh: 9
file content (19 lines) | stat: -rw-r--r-- 541 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#pragma once

// unfortunately gtk includes gtkx includes gdkx includes X11/X*.h
// where the latter brings in a whole slew of (evidently non-namespaced) define
// so try to undefine some of the more nasty ones that might likely conflict
#ifdef DestroyNotify
#undef DestroyNotify
#endif
#ifdef Status
#undef Status
#endif

// still part of GIR, but now not part of standard include (or pkg .pc)
#if GTK_CHECK_VERSION(4, 0, 0)
#ifdef G_OS_UNIX
// needs include path specified in gtk4-unix-print.pc
#include <gtk/gtkunixprint.h>
#endif
#endif