diff options
author | vostok4 <vostok4@gmail.com> | 2013-10-18 16:37:06 +0400 |
---|---|---|
committer | vostok4 <vostok4@gmail.com> | 2013-10-18 16:37:06 +0400 |
commit | 978fbcf6fc355fcd344feb76ab4b7d6b77e9f7c1 (patch) | |
tree | bad8331f6c8fa4cd52ddbc1ece80ba4bfbf90326 /redis_array.h | |
parent | 5655f0574e1df30c7c39d67dea40fb9fece334f4 (diff) |
Further fixes for building on VC9 Win32, C89 compliance
Include win32/php_stdint.h on Win32 (fixes compilation on VC9)
Change C++ comments to C89 style (to adhere to PHP project)
Diffstat (limited to 'redis_array.h')
-rw-r--r-- | redis_array.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/redis_array.h b/redis_array.h index 652b5aef..3b1163bf 100644 --- a/redis_array.h +++ b/redis_array.h @@ -1,7 +1,12 @@ #ifndef REDIS_ARRAY_H #define REDIS_ARRAY_H +#ifdef PHP_WIN32 +#include "win32/php_stdint.h" +#else #include <stdint.h> +#endif + #include "common.h" void redis_destructor_redis_array(zend_rsrc_list_entry * rsrc TSRMLS_DC); @@ -34,7 +39,7 @@ PHP_METHOD(RedisArray, unwatch); typedef struct RedisArray_ { - + int count; char **hosts; /* array of host:port strings */ zval **redis; /* array of Redis instances */ |