| 1 |
#ifndef _GI_GLIB_SETUP_DEF_HPP_ |
| 2 |
#define _GI_GLIB_SETUP_DEF_HPP_ |
| 3 |
|
| 4 |
// missing in GIR |
| 5 |
// recent version re'define functions to system functions, |
| 6 |
// but may not include suitable headers, so force fallback to wrapping |
| 7 |
// in recent version, it may also be included by glib-unix below |
| 8 |
// so do so before including that one |
| 9 |
#ifdef G_OS_UNIX |
| 10 |
#define G_STDIO_WRAP_ON_UNIX 1 |
| 11 |
#endif |
| 12 |
#include <glib/gstdio.h> |
| 13 |
|
| 14 |
#ifdef G_OS_UNIX |
| 15 |
// missing in GIR |
| 16 |
#include <glib-unix.h> |
| 17 |
#endif |
| 18 |
|
| 19 |
#endif // _GI_GLIB_SETUP_DEF_HPP_ |