confuse-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Confuse-devel] [PATCH 1/2] examples: declare source as GNU for strdup d


From: Carlo Marcelo Arenas Belon
Subject: [Confuse-devel] [PATCH 1/2] examples: declare source as GNU for strdup definition
Date: Sun, 4 Jan 2009 00:53:00 -0800

otherwise to show the following warning if compiled in -ansi mode :

  simple.c:34: warning: implicit declaration of function ‘strdup’
  simple.c:34: warning: assignment makes pointer from integer without a cast

Signed-off-by: Carlo Marcelo Arenas Belon <address@hidden>
---
 examples/simple.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/examples/simple.c b/examples/simple.c
index 9a6ee51..76266f1 100644
--- a/examples/simple.c
+++ b/examples/simple.c
@@ -1,3 +1,4 @@
+#define _GNU_SOURCE
 #include <string.h>
 #include <stdlib.h>
 #include "confuse.h"

reply via email to

[Prev in Thread] Current Thread [Next in Thread]