Files
php-memcached/php_libmemcached_compat.h
T
Teddy Grenman 468487d5af Fix build against libmemcached versions before 0.39.
memcached_server_instance_st was defined in 0.39. Built and tested
against 0.31 and 0.49.
2011-05-04 16:44:21 +03:00

17 lines
422 B
C

/*
* Here we define backwards compatibility for older
* libmemcached API:s
*
* // Teddy Grenman <teddy.grenman@iki.fi>
*/
#ifndef PHP_LIBMEMCACHED_COMPAT
#define PHP_LIBMEMCACHED_COMPAT
#if !defined(LIBMEMCACHED_VERSION_HEX) || LIBMEMCACHED_VERSION_HEX < 0x00039000
/* definition from libmemcached/types.h version 0.39+ */
typedef const struct memcached_server_st *memcached_server_instance_st;
#endif
#endif