[glib] Include <stdint.h> in glib/valgrind.h
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Include <stdint.h> in glib/valgrind.h
- Date: Tue, 23 Sep 2014 13:08:36 +0000 (UTC)
commit e1b84e3296c1ab0cba29ce2114505ae9f5002cae
Author: Hib Eris <hib hiberis nl>
Date: Mon Sep 22 22:37:43 2014 +0200
Include <stdint.h> in glib/valgrind.h
This ensures the uintptr_t type is defined on mingw-w64.
Fixes compile error:
make[4]: Entering directory
`/home/abuild/rpmbuild/BUILD/glib-2.42.0/gobject'
CC libgobject_2_0_la-gtype.lo
In file included from gtype.c:24:0:
../glib/valgrind.h: In function 'VALGRIND_PRINTF':
../glib/valgrind.h:5601:4: error: unknown type name 'uintptr_t'
uintptr_t _qzz_res;
^
https://bugzilla.gnome.org/show_bug.cgi?id=737143
glib/valgrind.h | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/glib/valgrind.h b/glib/valgrind.h
index bebfd69..376fa74 100644
--- a/glib/valgrind.h
+++ b/glib/valgrind.h
@@ -93,6 +93,9 @@
#include <stdarg.h>
+#if HAVE_STDINT_H
+#include <stdint.h>
+#endif
/* Nb: this file might be included in a file compiled with -ansi. So
we can't use C++ style "//" comments nor the "asm" keyword (instead
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]