summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorPeter Kokot <peterkokot@gmail.com>2019-02-23 23:39:21 +0100
committerPeter Kokot <peterkokot@gmail.com>2019-02-27 21:20:30 +0100
commit5cf570c9143481da9dd4ccaa5dade0adecda8f7b (patch)
treef1918a3a571f7be7939a34c91a689a349d88d889 /main
parent3aeb7b0e77c1411962f779fef6baa43cc41905c7 (diff)
downloadphp-git-5cf570c9143481da9dd4ccaa5dade0adecda8f7b.tar.gz
Remove unused PHP_AC_BROKEN_SNPRINTF m4 macro
The snprintf function is part of the C99 standard and newer systems in most cases all support it as defined in the standard. However, some old Windows and HP-UX systems the function behaves differently. These checks were also removed and PHP now uses a replacement for the snprintf function. With gradual transition to C99 usage as a minimum requirement, it will also be able to be replaced to system's snprintf function directly. Additionally in this context the unused HAVE_VSNPRINTF and check for vsnprintf have been removed. PHP uses its own vsnprintf implementation for now until more reliable C99 compliant function can be used from the C libraries.
Diffstat (limited to 'main')
-rw-r--r--main/spprintf.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/spprintf.h b/main/spprintf.h
index 0bfc5a28cd..bbb7add25c 100644
--- a/main/spprintf.h
+++ b/main/spprintf.h
@@ -33,4 +33,4 @@ END_EXTERN_C()
#define vspprintf zend_vspprintf
#define vstrpprintf zend_vstrpprintf
-#endif /* SNPRINTF_H */
+#endif /* SPPRINTF_H */