From b1ea3e00549ee59b3a456bf6cdd9d28700c165eb Mon Sep 17 00:00:00 2001 From: Shiqing Fan Date: Wed, 12 Sep 2007 15:32:54 +0000 Subject: [PATCH] - add more lines for static import declaration on windows. This commit was SVN r16101. --- ompi/include/mpi.h.in | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ompi/include/mpi.h.in b/ompi/include/mpi.h.in index d9a4a40170..7d8561dafd 100644 --- a/ompi/include/mpi.h.in +++ b/ompi/include/mpi.h.in @@ -122,7 +122,11 @@ #ifndef OMPI_DECLSPEC # if defined(WIN32) || defined(_WIN32) -# define OMPI_DECLSPEC __declspec(dllimport) +# if defined(OMPI_IMPORTS) +# define OMPI_DECLSPEC __declspec(dllimport) +# else +# define OMPI_DECLSPEC +# endif /* defined(OMPI_IMPORTS) */ # else # if OMPI_C_HAVE_VISIBILITY == 1 # define OMPI_DECLSPEC __attribute__((visibility("default")))