File: glib_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-- 497 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef _GI_GLIB_SETUP_DEF_HPP_
#define _GI_GLIB_SETUP_DEF_HPP_

// missing in GIR
// recent version re'define functions to system functions,
// but may not include suitable headers, so force fallback to wrapping
// in recent version, it may also be included by glib-unix below
// so do so before including that one
#ifdef G_OS_UNIX
#define G_STDIO_WRAP_ON_UNIX 1
#endif
#include <glib/gstdio.h>

#ifdef G_OS_UNIX
// missing in GIR
#include <glib-unix.h>
#endif

#endif // _GI_GLIB_SETUP_DEF_HPP_