diff options
author | Jason Greene <jason@php.net> | 2001-06-05 16:35:56 +0000 |
---|---|---|
committer | Jason Greene <jason@php.net> | 2001-06-05 16:35:56 +0000 |
commit | 9e5b0de828c419f8a9f84e167656b589ab9f6ef3 (patch) | |
tree | 65bd2ed2e6c956f0025963ee25930ebc8b2c24ab /main/snprintf.h | |
parent | f6dc573f32b767747a09c1a2a5aa59b1be5f5e41 (diff) | |
download | php-git-9e5b0de828c419f8a9f84e167656b589ab9f6ef3.tar.gz |
Add the capibility to to allow ap_php_(v)snprintf to replace (v)snprintf
if the platform has a broken (v)snprintf, or in my case, if a library included
by a module redifines snprintf incorrectly.
Diffstat (limited to 'main/snprintf.h')
-rw-r--r-- | main/snprintf.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/snprintf.h b/main/snprintf.h index abd9bd1f04..3f9bb98503 100644 --- a/main/snprintf.h +++ b/main/snprintf.h @@ -19,12 +19,12 @@ #ifndef SNPRINTF_H #define SNPRINTF_H -#ifndef HAVE_SNPRINTF +#if !defined(HAVE_SNPRINTF) || defined(BROKEN_SNPRINTF) extern int ap_php_snprintf(char *, size_t, const char *, ...); #define snprintf ap_php_snprintf #endif -#ifndef HAVE_VSNPRINTF +#if !defined(HAVE_VSNPRINTF) || defined(BROKEN_VSNPRINTF) extern int ap_php_vsnprintf(char *, size_t, const char *, va_list ap); #define vsnprintf ap_php_vsnprintf #endif |