]> granicus.if.org Git - php/commitdiff
- ws
authorJani Taskinen <jani@php.net>
Wed, 23 Dec 2009 21:06:26 +0000 (21:06 +0000)
committerJani Taskinen <jani@php.net>
Wed, 23 Dec 2009 21:06:26 +0000 (21:06 +0000)
ext/iconv/php_iconv.h

index c1b3d9ed0e4f4c43e4755598f40dbf51dcc16079..8d6de86f27da05679c6755611e948083ef51e3de 100644 (file)
 #define PHP_ICONV_H
 
 #ifdef PHP_WIN32
-#ifdef PHP_ICONV_EXPORTS
-#define PHP_ICONV_API __declspec(dllexport)
+# ifdef PHP_ICONV_EXPORTS
+#  define PHP_ICONV_API __declspec(dllexport)
+# else
+#  define PHP_ICONV_API __declspec(dllimport)
+# endif 
 #else
-#define PHP_ICONV_API __declspec(dllimport)
-#endif 
-#else
-#define PHP_ICONV_API
+# define PHP_ICONV_API
 #endif
 
 #ifdef PHP_ATOM_INC
@@ -42,7 +42,6 @@
 #include "ext/iconv/php_php_iconv_h_path.h"
 #endif
 
-
 #ifdef HAVE_ICONV
 extern zend_module_entry iconv_module_entry;
 #define iconv_module_ptr &iconv_module_entry
@@ -70,9 +69,9 @@ ZEND_BEGIN_MODULE_GLOBALS(iconv)
 ZEND_END_MODULE_GLOBALS(iconv)
 
 #ifdef ZTS
-#define ICONVG(v) TSRMG(iconv_globals_id, zend_iconv_globals *, v)
+# define ICONVG(v) TSRMG(iconv_globals_id, zend_iconv_globals *, v)
 #else
-#define ICONVG(v) (iconv_globals.v)
+# define ICONVG(v) (iconv_globals.v)
 #endif
 
 #define ICONV_INPUT_ENCODING "ISO-8859-1" 
@@ -109,7 +108,6 @@ PHP_ICONV_API php_iconv_err_t php_iconv_string(const char * in_p, size_t in_len,
 
 #endif /* PHP_ICONV_H */
 
-
 /*
  * Local variables:
  * tab-width: 4