refactor: fix c89 compatibility
git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1044 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
This commit is contained in:
parent
f653cdb6ea
commit
12e8dc053e
|
@ -128,7 +128,7 @@ phpize)
|
|||
export PATH=$PHPDIRS/$phpbasename/bin:$PATH
|
||||
phpize --clean \
|
||||
&& phpize \
|
||||
&& CFLAGS="-g -O0 -Wall -Wno-unused -W -Wshadow -Werror=implicit-function-declaration -std=gnu99" ./configure \
|
||||
&& CFLAGS="-g -O0 -Wall -Wno-unused -W -Wshadow -Werror=implicit-function-declaration -std=c89 -D_GNU_SOURCE -D_POSIX_SOURCE -Dinline=" ./configure \
|
||||
--enable-xcache-cacher \
|
||||
--enable-xcache-optimizer \
|
||||
--enable-xcache-encoder \
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
#if _MSC_VER > 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER > 1000
|
||||
#endif /* _MSC_VER > 1000 */
|
||||
|
||||
int xc_cacher_startup_module();
|
||||
int xc_cacher_disable();
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
#if _MSC_VER > 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER > 1000
|
||||
#endif /* _MSC_VER > 1000 */
|
||||
|
||||
#include "php.h"
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
#if _MSC_VER > 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER > 1000
|
||||
#endif /* _MSC_VER > 1000 */
|
||||
|
||||
int xc_disassembler_startup_module();
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
#if _MSC_VER > 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER > 1000
|
||||
#endif /* _MSC_VER > 1000 */
|
||||
|
||||
#include "php.h"
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
#if _MSC_VER > 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER > 1000
|
||||
#endif /* _MSC_VER > 1000 */
|
||||
|
||||
#ifdef ZEND_WIN32
|
||||
# ifndef inline
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
#if _MSC_VER > 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER > 1000
|
||||
#endif /* _MSC_VER > 1000 */
|
||||
|
||||
typedef struct {
|
||||
zend_uint size;
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
#if _MSC_VER > 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER > 1000
|
||||
#endif /* _MSC_VER > 1000 */
|
||||
|
||||
#include "php.h"
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
#if _MSC_VER > 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER > 1000
|
||||
#endif /* _MSC_VER > 1000 */
|
||||
|
||||
#include "zend_extensions.h"
|
||||
int xcache_zend_extension_register(zend_extension *new_extension, zend_bool prepend);
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
#if _MSC_VER > 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER > 1000
|
||||
#endif /* _MSC_VER > 1000 */
|
||||
|
||||
#include "php.h"
|
||||
#include "php_ini.h"
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
#if _MSC_VER > 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER > 1000
|
||||
#endif /* _MSC_VER > 1000 */
|
||||
|
||||
typedef struct _xc_lock_t xc_lock_t;
|
||||
|
||||
|
|
|
@ -20,7 +20,6 @@ typedef int zend_bool;
|
|||
#define XC_MEMBLOCK_IMPL _xc_mem_block_t
|
||||
#define XC_MEM_IMPL _xc_mem_mem_t
|
||||
#include "xc_shm.h"
|
||||
// #include "xc_utils.h"
|
||||
#include "util/xc_align.h"
|
||||
#include "util/xc_trace.h"
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
#if _MSC_VER > 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER > 1000
|
||||
#endif /* _MSC_VER > 1000 */
|
||||
|
||||
/* Purpose: run specified function in compiler sandbox, restore everything to previous state after it returns
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue