Enlightenment CVS committal

Author  : kwo
Project : e16
Module  : e

Dir     : e16/e/eesh


Modified Files:
        E.h memory.c 


Log Message:
Use libc setenv when available.
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/eesh/E.h,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -3 -r1.14 -r1.15
--- E.h 28 Feb 2004 15:13:57 -0000      1.14
+++ E.h 20 Mar 2004 15:28:04 -0000      1.15
@@ -48,7 +48,9 @@
 #include <sys/ipc.h>
 #include <sys/shm.h>
 
-#define USE_STRDUP  1
+#if HAVE_STRDUP
+#define USE_LIBC_STRDUP  1     /* Use libc strdup if present */
+#endif
 
 #define LIST_FINDBY_NAME        0
 #define LIST_FINDBY_ID          1
@@ -147,7 +149,7 @@
 __Erealloc(x, y)
 #endif
 
-#if defined(USE_STRDUP) && defined(HAVE_STRDUP)
+#if USE_LIBC_STRDUP
 #define Estrdup(s) ((s) ? strdup(s) : NULL)
 #else
 char               *Estrdup(const char *s);
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/eesh/memory.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- memory.c    28 Feb 2004 15:13:57 -0000      1.6
+++ memory.c    20 Mar 2004 15:28:04 -0000      1.7
@@ -152,7 +152,7 @@
    EDBUG_RETURN_;
 }
 
-#if !(defined(USE_STRDUP) && defined(HAVE_STRDUP))
+#if !USE_LIBC_STRDUP
 char               *
 Estrdup(const char *s)
 {




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to