[glib-controller] Include <string.h> for memset
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib-controller] Include <string.h> for memset
- Date: Wed, 5 May 2010 14:26:36 +0000 (UTC)
commit a9fea15efe7efa7bb23c5f3688e9eb22625b4c0e
Author: Emmanuele Bassi <ebassi linux intel com>
Date: Wed May 5 15:14:08 2010 +0100
Include <string.h> for memset
The GValue collection and copy macros use memset() internally, so we
need to include <string.h> to avoid a warning.
glib-controller/gcontroller.c | 1 +
glib-controller/gcontrollerreference.c | 1 +
2 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/glib-controller/gcontroller.c b/glib-controller/gcontroller.c
index ef11589..04c22a8 100644
--- a/glib-controller/gcontroller.c
+++ b/glib-controller/gcontroller.c
@@ -24,6 +24,7 @@
#include "gcontrollermarshal.h"
#include "gcontrollerreference.h"
+#include <string.h>
#include <gobject/gvaluecollector.h>
enum
diff --git a/glib-controller/gcontrollerreference.c b/glib-controller/gcontrollerreference.c
index 0e230f7..be5401c 100644
--- a/glib-controller/gcontrollerreference.c
+++ b/glib-controller/gcontrollerreference.c
@@ -22,6 +22,7 @@
#include "gcontrollerenumtypes.h"
#include "gcontrollertypes.h"
+#include <string.h>
#include <gobject/gvaluecollector.h>
struct _GControllerReferencePrivate
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]