rrichards               Sat Dec 27 12:21:36 2008 UTC

  Modified files:              
    /php-src/ext/simplexml      config.w32 php_simplexml.h 
  Log:
  proper exports/imports for win32
  
http://cvs.php.net/viewvc.cgi/php-src/ext/simplexml/config.w32?r1=1.7&r2=1.8&diff_format=u
Index: php-src/ext/simplexml/config.w32
diff -u php-src/ext/simplexml/config.w32:1.7 
php-src/ext/simplexml/config.w32:1.8
--- php-src/ext/simplexml/config.w32:1.7        Fri Dec 26 14:16:38 2008
+++ php-src/ext/simplexml/config.w32    Sat Dec 27 12:21:36 2008
@@ -1,4 +1,4 @@
-// $Id: config.w32,v 1.7 2008/12/26 14:16:38 pajoye Exp $
+// $Id: config.w32,v 1.8 2008/12/27 12:21:36 rrichards Exp $
 // vim:ft=javascript
 
 ARG_WITH("simplexml", "Simple XML support", "yes");
@@ -13,6 +13,7 @@
                if (!ADD_EXTENSION_DEP('simplexml', 'spl', true)) {
                        MESSAGE("\tSPL support in simplexml disabled");
                }
+               ADD_FLAG("CFLAGS_SIMPLEXML", "/D PHP_SIMPLEXML_EXPORTS ");
        } else {
                PHP_SIMPLEXML == "no";
                WARNING("simplexml not enabled; libraries and headers not 
found");
http://cvs.php.net/viewvc.cgi/php-src/ext/simplexml/php_simplexml.h?r1=1.32&r2=1.33&diff_format=u
Index: php-src/ext/simplexml/php_simplexml.h
diff -u php-src/ext/simplexml/php_simplexml.h:1.32 
php-src/ext/simplexml/php_simplexml.h:1.33
--- php-src/ext/simplexml/php_simplexml.h:1.32  Sat Dec 27 01:07:18 2008
+++ php-src/ext/simplexml/php_simplexml.h       Sat Dec 27 12:21:36 2008
@@ -16,7 +16,7 @@
   +----------------------------------------------------------------------+
 */
 
-/* $Id: php_simplexml.h,v 1.32 2008/12/27 01:07:18 rrichards Exp $ */
+/* $Id: php_simplexml.h,v 1.33 2008/12/27 12:21:36 rrichards Exp $ */
 
 #ifndef PHP_SIMPLEXML_H
 #define PHP_SIMPLEXML_H
@@ -77,7 +77,15 @@
 #define SIMPLEXML_G(v) (simplexml_globals.v)
 #endif
 
-#define PHP_SXE_API ZEND_DLEXPORT
+#ifdef PHP_WIN32
+#      ifdef PHP_SIMPLEXML_EXPORTS
+#              define PHP_SXE_API __declspec(dllexport)
+#      else
+#              define PHP_SXE_API __declspec(dllimport)
+#      endif
+#else
+#      define PHP_SXE_API ZEND_API
+#endif
 
 PHP_SXE_API zend_class_entry *sxe_get_element_class_entry(TSRMLS_D);
 



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to