From 08362f90d9fa692b1047c190f51c789c9c3bade7 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Thu, 14 Nov 2002 12:06:01 +0000 Subject: [PATCH] Fix build for unix. Not sure if this needs merging to the branch (haven't got that far yet today). --- ext/mbstring/mbstring.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/ext/mbstring/mbstring.h b/ext/mbstring/mbstring.h index b5c3d65280..f52dcdcecb 100644 --- a/ext/mbstring/mbstring.h +++ b/ext/mbstring/mbstring.h @@ -49,18 +49,18 @@ #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 -- 2.40.0