confuse-devel
[Top][All Lists]
Advanced

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

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


From: Carlo Marcelo Arenas Belon
Subject: [Confuse-devel] [PATCH 5/7] examples: declare source as GNU for strdup definition
Date: Sat, 27 Mar 2010 03:08:32 -0700

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"
-- 
1.7.0.1





reply via email to

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