diff --git a/glib/gtypes.h b/glib/gtypes.h index df65836a0..23c5a1295 100644 --- a/glib/gtypes.h +++ b/glib/gtypes.h @@ -565,7 +565,7 @@ G_END_DECLS # else /* !GLIB_STATIC_COMPILATION */ # ifdef GLIB_COMPILATION # ifdef DLL_EXPORT -# define GLIB_VAR __declspec(dllexport) +# define GLIB_VAR extern __declspec(dllexport) # else /* !DLL_EXPORT */ # define GLIB_VAR extern # endif /* !DLL_EXPORT */ diff --git a/gobject/gparamspecs.h b/gobject/gparamspecs.h index 0309f9bb3..d0e4d5953 100644 --- a/gobject/gparamspecs.h +++ b/gobject/gparamspecs.h @@ -1150,7 +1150,7 @@ GParamSpec* g_param_spec_variant (const gchar *name, # else /* !GOBJECT_STATIC_COMPILATION */ # ifdef GOBJECT_COMPILATION # ifdef DLL_EXPORT -# define GOBJECT_VAR __declspec(dllexport) +# define GOBJECT_VAR extern __declspec(dllexport) # else /* !DLL_EXPORT */ # define GOBJECT_VAR extern # endif /* !DLL_EXPORT */