Bug 200561: do not include <string.h> in optimized builds for AIX so that

memcpy continued to be exported.  This is to be "bug compatible" with old
libnspr4.so binaries that exported memcpy by accident because we did not
include <string.h> in optimized builds.
This commit is contained in:
wtc%netscape.com 2003-04-09 02:20:46 +00:00
parent 5a4cbd5c11
commit 9bc8fdc32a

View File

@ -34,7 +34,16 @@
#include "primpl.h"
/*
* We were not including <string.h> in optimized builds. On AIX this
* caused libnspr4.so to export memcpy and some binaries linked with
* libnspr4.so resolved their memcpy references with libnspr4.so. To
* be backward compatible with old libnspr4.so binaries, we do not
* include <string.h> in optimized builds for AIX. (bug 200561)
*/
#if !(defined(AIX) && !defined(DEBUG))
#include <string.h>
#endif
PRSize _pr_CopyLowBits(
void *dst,