bug-gnulib
[Top][All Lists]
Advanced

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

stpcpy, strdup tweak


From: Bruno Haible
Subject: stpcpy, strdup tweak
Date: Wed, 11 Oct 2006 14:45:32 +0200
User-agent: KMail/1.9.1

Likewise, make it possible to alias stpcpy, strdup.

2006-10-10  Bruno Haible  <address@hidden>

        Make it possible to #define stpcpy, strdup to aliases.
        * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
        * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.

diff -c -3 -r1.14 stpcpy.c
*** lib/stpcpy.c        14 Sep 2006 14:18:36 -0000      1.14
--- lib/stpcpy.c        11 Oct 2006 12:44:25 -0000
***************
*** 23,29 ****
  #include <string.h>
  
  #undef __stpcpy
! #undef stpcpy
  
  #ifndef weak_alias
  # define __stpcpy stpcpy
--- 23,31 ----
  #include <string.h>
  
  #undef __stpcpy
! #ifdef _LIBC
! # undef stpcpy
! #endif
  
  #ifndef weak_alias
  # define __stpcpy stpcpy
diff -c -3 -r1.18 strdup.c
*** lib/strdup.c        13 Sep 2006 22:38:14 -0000      1.18
--- lib/strdup.c        11 Oct 2006 12:44:25 -0000
***************
*** 27,33 ****
  #include <string.h>
  
  #undef __strdup
! #undef strdup
  
  #ifndef weak_alias
  # define __strdup strdup
--- 27,35 ----
  #include <string.h>
  
  #undef __strdup
! #ifdef _LIBC
! # undef strdup
! #endif
  
  #ifndef weak_alias
  # define __strdup strdup




reply via email to

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