Commit e5737c73 authored by Bruno Haible's avatar Bruno Haible

Make it possible to alias stpcpy and strdup.

parent a0a86efb
2006-10-10 Bruno Haible <bruno@clisp.org>
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.
2006-10-10 Bruno Haible <bruno@clisp.org>
Make it possible to #define gcd to an alias.
......
......@@ -23,7 +23,9 @@
#include <string.h>
#undef __stpcpy
#undef stpcpy
#ifdef _LIBC
# undef stpcpy
#endif
#ifndef weak_alias
# define __stpcpy stpcpy
......
......@@ -27,7 +27,9 @@
#include <string.h>
#undef __strdup
#undef strdup
#ifdef _LIBC
# undef strdup
#endif
#ifndef weak_alias
# define __strdup strdup
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment