summaryrefslogtreecommitdiff
path: root/TSRM
diff options
context:
space:
mode:
authorPeter Kokot <peterkokot@gmail.com>2019-07-13 01:58:38 +0200
committerPeter Kokot <peterkokot@gmail.com>2019-07-13 01:58:38 +0200
commit930e38ec5c742721f2f18f326954682954b379af (patch)
treed30d82e0743d742f953d93c19ee57c1e64f4fd98 /TSRM
parent5929f6fccb8245cca82b62cd30371a8a1ed6a54f (diff)
parent33994ebd95c3c42b0dca4e0f161692ecee7d741b (diff)
downloadphp-git-930e38ec5c742721f2f18f326954682954b379af.tar.gz
Merge branch 'PHP-7.4'
* PHP-7.4: Remove tsrm_config_common.h
Diffstat (limited to 'TSRM')
-rw-r--r--TSRM/tsrm_config_common.h69
1 files changed, 0 insertions, 69 deletions
diff --git a/TSRM/tsrm_config_common.h b/TSRM/tsrm_config_common.h
deleted file mode 100644
index 90c2ea4b33..0000000000
--- a/TSRM/tsrm_config_common.h
+++ /dev/null
@@ -1,69 +0,0 @@
-#ifndef TSRM_CONFIG_COMMON_H
-#define TSRM_CONFIG_COMMON_H
-
-#ifndef __CYGWIN__
-# ifdef _WIN32
-# define TSRM_WIN32
-# endif
-#endif
-
-#ifdef TSRM_WIN32
-# include "Zend/zend_config.w32.h"
-#else
-# include "main/php_config.h"
-# include <sys/param.h>
-#endif
-
-#if HAVE_ALLOCA_H && !defined(_ALLOCA_H)
-# include <alloca.h>
-#endif
-
-/* AIX requires this to be the first thing in the file. */
-#ifndef __GNUC__
-# ifndef HAVE_ALLOCA_H
-# ifdef _AIX
-#pragma alloca
-# else
-# ifndef alloca /* predefined by HP cc +Olibcalls */
-char *alloca ();
-# endif
-# endif
-# endif
-#endif
-
-#if HAVE_UNISTD_H
-#include <unistd.h>
-#endif
-
-#include <limits.h>
-
-#ifndef MAXPATHLEN
-# if _WIN32
-# include "win32/ioutil.h"
-# define MAXPATHLEN PHP_WIN32_IOUTIL_MAXPATHLEN
-# elif PATH_MAX
-# define MAXPATHLEN PATH_MAX
-# elif defined(MAX_PATH)
-# define MAXPATHLEN MAX_PATH
-# else
-# define MAXPATHLEN 256
-# endif
-#endif
-
-#if (HAVE_ALLOCA || (defined (__GNUC__) && __GNUC__ >= 2))
-# define TSRM_ALLOCA_MAX_SIZE 4096
-# define TSRM_ALLOCA_FLAG(name) \
- int name;
-# define tsrm_do_alloca_ex(size, limit, use_heap) \
- ((use_heap = ((size) > (limit))) ? malloc(size) : alloca(size))
-# define tsrm_do_alloca(size, use_heap) \
- tsrm_do_alloca_ex(size, TSRM_ALLOCA_MAX_SIZE, use_heap)
-# define tsrm_free_alloca(p, use_heap) \
- do { if (use_heap) free(p); } while (0)
-#else
-# define TSRM_ALLOCA_FLAG(name)
-# define tsrm_do_alloca(p, use_heap) malloc(p)
-# define tsrm_free_alloca(p, use_heap) free(p)
-#endif
-
-#endif /* TSRM_CONFIG_COMMON_H */