mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 22:53:42 +00:00
5e903ee079
Sources would include glib-headers from within an extern-C scope. Since glib-headers contained templates, this would fail. Add a patch to move the header includes outside of the extern-C scope.
22 lines
437 B
Diff
22 lines
437 B
Diff
diff --git a/uf_glib.h b/uf_glib.h
|
|
index c1a17bd..8a10800 100644
|
|
--- a/uf_glib.h
|
|
+++ b/uf_glib.h
|
|
@@ -13,13 +13,13 @@
|
|
#ifndef _UF_GLIB_H
|
|
#define _UF_GLIB_H
|
|
|
|
+#include <glib.h>
|
|
+#include <glib/gstdio.h>
|
|
+
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
-#include <glib.h>
|
|
-#include <glib/gstdio.h>
|
|
-
|
|
// g_win32_locale_filename_from_utf8 is needed only on win32
|
|
#ifdef _WIN32
|
|
#define uf_win32_locale_filename_from_utf8(__some_string__) \
|