]> granicus.if.org Git - php/commitdiff
MFH (fixes unix build of mbstring)
authorEdin Kadribasic <edink@php.net>
Thu, 14 Nov 2002 13:37:26 +0000 (13:37 +0000)
committerEdin Kadribasic <edink@php.net>
Thu, 14 Nov 2002 13:37:26 +0000 (13:37 +0000)
ext/mbstring/mbstring.h

index b5c3d65280693be680088726498b218643edcafb..f52dcdcecb3120f6636b681c18fa457b9c78aa3b 100644 (file)
 #ifdef COMPILE_DL_MBSTRING
 #undef HAVE_MBSTRING
 #define HAVE_MBSTRING 1
-#undef MBSTRING_API
-#define MBSTRING_API
-
 #endif
 
 #ifdef PHP_WIN32
-#undef MBSTRING_API
-#ifdef MBSTRING_EXPORTS
-#define MBSTRING_API __declspec(dllexport)
+# undef MBSTRING_API
+# ifdef MBSTRING_EXPORTS
+#  define MBSTRING_API __declspec(dllexport)
+# else
+#  define MBSTRING_API __declspec(dllimport)
+# endif
 #else
-#define MBSTRING_API __declspec(dllimport)
-#endif
+# undef MBSTRING_API
+# define MBSTRING_API /* nothing special */
 #endif