Changeset 73 for eaccelerator/trunk/eaccelerator.h
- Timestamp:
- 05/05/05 10:53:05 (4 years ago)
- Files:
-
- eaccelerator/trunk/eaccelerator.h (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
eaccelerator/trunk/eaccelerator.h
r64 r73 45 45 #endif 46 46 47 #if ndef ZEND_WIN3247 #if !defined(ZEND_WIN32) && defined(HAVE_CONFIG_H) 48 48 # if ZEND_MODULE_API_NO >= 20001222 49 49 # include "config.h" … … 51 51 # include "php_config.h" 52 52 # endif 53 #endif 54 55 /* needed to compile eA as a static php module */ 56 extern zend_module_entry eaccelerator_module_entry; 57 #define phpext_eaccelerator_ptr &eaccelerator_module_entry 58 59 /* fixes compile errors on php5.1 */ 60 #ifdef STR_EMPTY_ALLOC 61 #define empty_string STR_EMPTY_ALLOC() 53 62 #endif 54 63 … … 89 98 # ifndef ZEND_WIN32 90 99 # ifdef HAVE_FLOCK 100 # include <sys/file.h> 91 101 # define EACCELERATOR_FLOCK(FILE,OP) flock((FILE),(OP)) 92 102 # else … … 119 129 #endif 120 130 131 #ifdef ZEND_WIN32 132 # include <process.h> 133 # ifndef S_ISREG 134 # define S_ISREG(mode) (((mode)&S_IFMT) & S_IFREG) 135 # endif 136 # ifndef S_IRUSR 137 # define S_IRUSR S_IREAD 138 # endif 139 # ifndef S_IWUSR 140 # define S_IWUSR S_IWRITE 141 # endif 142 #else 143 # include <dirent.h> 144 #endif 145 121 146 #ifdef ZTS 122 147 # define ZTS_LOCK() tsrm_mutex_lock(mm_mutex) … … 164 189 #define MAX_DUP_STR_LEN 256 165 190 166 #define offsetof(str,fld) ((size_t)&(((str*)NULL)->fld)) 191 #ifndef offsetof 192 # define offsetof(str,fld) ((size_t)&(((str*)NULL)->fld)) 193 #endif 167 194 168 195 #define EACCELERATOR_EXTENSION_NAME "eAccelerator" … … 377 404 } mm_cond_entry; 378 405 406 typedef union align_union { 407 double d; 408 void *v; 409 int (*func)(int); 410 long l; 411 } align_union; 412 379 413 /******************************************************************************/ 414 415 #ifdef ZTS 416 MUTEX_T mm_mutex; 417 #endif 380 418 381 419 void format_size (char *s, unsigned int size, int legend);