cvs: pecl /spl php_spl.h spl_array.c
| From: | Wez Furlong | Date: | Tue, 23 Dec 2003 01:57:26 +0000 |
| Subject: | cvs: pecl /spl php_spl.h spl_array.c | ||
| Groups: | php.pecl.cvs | ||
| Request: | Send a blank email to pecl-cvs+get-610@lists.php.net to get a copy of this message | ||
wez Mon Dec 22 20:57:26 2003 EDT
Modified files:
/pecl/spl php_spl.h spl_array.c
Log:
fix API exports
Index: pecl/spl/php_spl.h
diff -u pecl/spl/php_spl.h:1.13 pecl/spl/php_spl.h:1.14
--- pecl/spl/php_spl.h:1.13 Fri Dec 5 19:09:55 2003
+++ pecl/spl/php_spl.h Mon Dec 22 20:57:26 2003
@@ -31,6 +31,18 @@
extern zend_module_entry spl_module_entry;
#define phpext_spl_ptr &spl_module_entry
+#ifdef PHP_WIN32
+# ifdef SPL_EXPORTS
+# define SPL_API __declspec(dllexport)
+# elif defined(COMPILE_DL_SPL)
+# define SPL_API __declspec(dllimport)
+# else
+# define SPL_API /* nothing */
+# endif
+#else
+# define SPL_API
+#endif
+
#if defined(PHP_WIN32) && !defined(COMPILE_DL_SPL)
#undef phpext_spl
#define phpext_spl NULL
Index: pecl/spl/spl_array.c
diff -u pecl/spl/spl_array.c:1.27 pecl/spl/spl_array.c:1.28
--- pecl/spl/spl_array.c:1.27 Wed Nov 26 18:28:34 2003
+++ pecl/spl/spl_array.c Mon Dec 22 20:57:26 2003
@@ -360,7 +360,7 @@
/* }}} */
/* {{{ spl_hash_pos_exists */
-ZEND_API int spl_hash_pos_exists(spl_array_object * intern TSRMLS_DC)
+SPL_API int spl_hash_pos_exists(spl_array_object * intern TSRMLS_DC)
{
HashTable *ht = HASH_OF(intern->array);
Bucket *p;