27#define FINFO_LSEEK_FUNC _lseeki64
29#define FINFO_LSEEK_FUNC _lseek
31#define FINFO_READ_FUNC _read
33#define strtoull _strtoui64
36#define HAVE_ASCTIME_R 1
37#define asctime_r php_asctime_r
39#define ctime_r php_ctime_r
42#define FINFO_LSEEK_FUNC lseek
43#define FINFO_READ_FUNC read
46#if defined(__hpux) && !defined(HAVE_STRTOULL)
48# define strtoull strtoul
50# define strtoull __strtoull
55#define offsetof(STRUCTURE,FIELD) ((int)((char*)&((STRUCTURE*)0)->FIELD))
59# define UINT32_MAX (0xffffffff)
62#ifndef PREG_OFFSET_CAPTURE
63# define PREG_OFFSET_CAPTURE (1<<8)
66#define abort() zend_error_noreturn(E_ERROR, "fatal libmagic error")
PHP_JSON_API size_t int options
zend_string * convert_libmagic_pattern(const char *val, size_t len, uint32_t options)
struct _zend_string zend_string