From 712c85eddc88fe05d4cd453c10fd19fdf692a451 Mon Sep 17 00:00:00 2001 From: foobar Date: Wed, 24 Apr 2002 12:45:55 +0000 Subject: One big mess is a bit less mess now. --- ext/recode/php_recode.h | 45 ++------------------------------------------- 1 file changed, 2 insertions(+), 43 deletions(-) (limited to 'ext/recode/php_recode.h') diff --git a/ext/recode/php_recode.h b/ext/recode/php_recode.h index dcdf4fd024..0fc86256e1 100644 --- a/ext/recode/php_recode.h +++ b/ext/recode/php_recode.h @@ -14,67 +14,26 @@ +----------------------------------------------------------------------+ | Author: Kristian Koehntopp | +----------------------------------------------------------------------+ - */ - +*/ /* $Id$ */ #ifndef PHP_RECODE_H #define PHP_RECODE_H -#ifdef PHP_WIN32 -#define PHP_MYSQL_API __declspec(dllexport) -#else -#define PHP_MYSQL_API -#endif - #if HAVE_LIBRECODE -/* Checking for thread safety and issue warning if necessary. */ -#ifdef ZTS -#warning Recode module has not been tested for thread-safety. -#endif - -/* Recode 3.5 is broken in the sense that it requires the definition - * of a symbol "program_name" in order to link. - */ -#define HAVE_BROKEN_RECODE - -#ifdef HAVE_STDBOOL_H -# include -#else - typedef enum {false = 0, true = 1} bool; -#endif - -#include -#include -#include -#include - extern zend_module_entry recode_module_entry; #define phpext_recode_ptr &recode_module_entry PHP_MINIT_FUNCTION(recode); PHP_MSHUTDOWN_FUNCTION(recode); PHP_MINFO_FUNCTION(recode); - PHP_FUNCTION(recode_string); PHP_FUNCTION(recode_file); -#ifdef ZTS -#include "TSRM.h" -#endif - -ZEND_BEGIN_MODULE_GLOBALS(recode) - RECODE_OUTER outer; -ZEND_END_MODULE_GLOBALS(recode) - -#ifdef ZTS -#define ReSG(v) TSRMG(recode_globals_id, zend_recode_globals *, v) #else -#define ReSG(v) (recode_globals.v) -#endif - +#define phpext_recode_ptr NULL #endif #endif /* PHP_RECODE_H */ -- cgit v1.2.1