1
0
Fork 0

refactor: fix c89 compatibility

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1044 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
This commit is contained in:
Xuefer 2012-07-25 09:03:22 +00:00
parent f653cdb6ea
commit 12e8dc053e
13 changed files with 12 additions and 13 deletions

View File

@ -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 \

View File

@ -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();

View File

@ -3,7 +3,7 @@
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#endif /* _MSC_VER > 1000 */
#include "php.h"

View File

@ -3,7 +3,7 @@
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#endif /* _MSC_VER > 1000 */
int xc_disassembler_startup_module();

View File

@ -3,7 +3,7 @@
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#endif /* _MSC_VER > 1000 */
#include "php.h"

View File

@ -3,7 +3,7 @@
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#endif /* _MSC_VER > 1000 */
#ifdef ZEND_WIN32
# ifndef inline

View File

@ -3,7 +3,7 @@
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#endif /* _MSC_VER > 1000 */
typedef struct {
zend_uint size;

View File

@ -3,7 +3,7 @@
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#endif /* _MSC_VER > 1000 */
#include "php.h"

View File

@ -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);

View File

@ -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"

View File

@ -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;

View File

@ -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"

View File

@ -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
*/