forked from Megasaxon/php-xxhash
-
Notifications
You must be signed in to change notification settings - Fork 1
/
php_xxhash.h
31 lines (24 loc) · 647 Bytes
/
php_xxhash.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef PHP_XXHASH_H
#define PHP_XXHASH_H
extern zend_module_entry xxhash_module_entry;
#define phpext_xxhash_ptr &xxhash_module_entry
#define PHP_XXHASH_VERSION "2.0"
#ifdef PHP_WIN32
# define PHP_XXHASH_API __declspec(dllexport)
#elif defined(__GNUC__) && __GNUC__ >= 4
# define PHP_XXHASH_API __attribute__ ((visibility("default")))
#else
# define PHP_XXHASH_API
#endif
#ifdef ZTS
#include "TSRM.h"
#endif
#ifdef ZTS
#define XXHASH_G(v) ZEND_TSRMG(xxhash_globals_id, zend_xxhash_globals *, v)
#ifdef COMPILE_DL_XXHASH
ZEND_TSRMLS_CACHE_EXTERN();
#endif
#else
#define XXHASH_G(v) (xxhash_globals.v)
#endif
#endif /* PHP_XXHASH_H */