]> granicus.if.org Git - php/commitdiff
Fix build for unix.
authorWez Furlong <wez@php.net>
Thu, 14 Nov 2002 12:06:01 +0000 (12:06 +0000)
committerWez Furlong <wez@php.net>
Thu, 14 Nov 2002 12:06:01 +0000 (12:06 +0000)
Not sure if this needs merging to the branch (haven't got that far yet today).

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