Fix build on systems which lack snprintf or vsnprintf.

PR: #3786
This commit is contained in:
Sascha Schumann 2000-03-12 15:47:34 +00:00
parent e20b13751b
commit caeaaf4d98
15 changed files with 2 additions and 19 deletions

View file

@ -83,7 +83,6 @@ static zend_class_entry *oci_lob_class_entry_ptr;
#include <fcntl.h>
#include "snprintf.h"
/* }}} */
/* {{{ thread safety stuff */

View file

@ -40,7 +40,6 @@
#include <fcntl.h>
#include "ext/standard/head.h"
#include "snprintf.h"
#include "php_ini.h"
#if WIN32|WINNT

View file

@ -44,7 +44,6 @@
# include "build-defs.h"
#endif
#include "snprintf.h"
#ifndef min
#define min(a, b) ((a) > (b) ? (b) : (a))

View file

@ -25,7 +25,6 @@
#include "php.h"
#include "zend_operators.h"
#include "datetime.h"
#include "snprintf.h"
#include "php_globals.h"
#include <time.h>

View file

@ -65,7 +65,6 @@
#include <netdb.h>
#include <arpa/inet.h>
#endif
#include "snprintf.h"
#include "fsock.h"
#include "fopen-wrappers.h"
#include "php_globals.h"

View file

@ -23,7 +23,6 @@
#include "php.h"
#include "phpmath.h"
#include "snprintf.h"
#include <math.h>

View file

@ -40,7 +40,6 @@
#include <errno.h>
#include "microtime.h"
#include "snprintf.h"
#define NUL '\0'
#define MICRO_IN_SEC 1000000.00

View file

@ -44,7 +44,6 @@
#include <pwd.h>
#endif
#endif
#include "snprintf.h"
#include "fsock.h"
#if HAVE_NETINET_IN_H
#include <netinet/in.h>

View file

@ -20,7 +20,6 @@
/* $Id$ */
#include "php.h"
#include "snprintf.h"
#ifdef TRANS_SID

View file

@ -32,7 +32,6 @@
# if !(WIN32|WINNT)
# include "build-defs.h"
# endif
# include "snprintf.h"
# include "ext/standard/head.h"
/* Short-term TODO list:

View file

@ -48,7 +48,6 @@
#include <pwd.h>
#endif
#endif
#include "snprintf.h"
#if HAVE_ZLIB
#if defined(HAVE_UNISTD_H) && defined(PHP_WIN32)
#undef HAVE_UNISTD_H

View file

@ -49,7 +49,6 @@
#include "main.h"
#include "fopen-wrappers.h"
#include "ext/standard/php_standard.h"
#include "snprintf.h"
#include "php_variables.h"
#ifdef PHP_WIN32
#include <io.h>

View file

@ -188,11 +188,8 @@ extern char *strerror(int);
#define LONG_MIN (- LONG_MAX - 1)
#endif
#if (!HAVE_SNPRINTF)
#define snprintf ap_snprintf
#define vsnprintf ap_vsnprintf
extern int ap_snprintf(char *, size_t, const char *, ...);
extern int ap_vsnprintf(char *, size_t, const char *, va_list);
#if !defined(HAVE_SNPRINTF) || !defined(HAVE_VSNPRINTF)
#include "snprintf.h"
#endif
#define EXEC_INPUT_BUF 4096

View file

@ -52,7 +52,6 @@
#include "main.h"
#include "fopen-wrappers.h"
#include "ext/standard/php_standard.h"
#include "snprintf.h"
#if WIN32|WINNT
#include <io.h>
#include <fcntl.h>

View file

@ -52,7 +52,6 @@
#include "fopen-wrappers.h"
#include "ext/standard/php_standard.h"
#include "ext/standard/php_dir.h"
#include "snprintf.h"
#if WIN32|WINNT
#include <io.h>
#include <fcntl.h>