From: Gary V. Vaughan Date: Mon, 17 May 1999 13:30:44 +0000 (+0000) Subject: * demo/foo.h: Don't set any declspecs until we have full dlli X-Git-Tag: release-1-3b~72 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=89523598762bc389ab963430fd90303d32ffcfa2;p=thirdparty%2Flibtool.git * demo/foo.h: Don't set any declspecs until we have full dlli support. --- diff --git a/ChangeLog b/ChangeLog index 77f08dc89..7a6024cd7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +1999-05-17 Gary V. Vaughan + + * demo/foo.h: Don't set any declspecs until we have full dlli + support. + 1999-05-16 Alexandre Oliva * ltconfig.in (solaris2.6, whole_archive_flag_spec): Do not use diff --git a/demo/foo.h b/demo/foo.h index 175c019cf..a240d5096 100644 --- a/demo/foo.h +++ b/demo/foo.h @@ -58,10 +58,18 @@ USA. */ #endif #ifdef __CYGWIN32__ -# ifdef _LIBFOO_COMPILATION_ -# define EXTERN __declspec(dllexport) +# ifdef LIBFOO_DLL + /* need some (as yet non-existant) automake magic to tell + * the object whether the libfoo it will be linked with is + * a dll or not, ie whether LIBFOO_DLL is defined or not. + */ +# ifdef _LIBFOO_COMPILATION_ +# define EXTERN __declspec(dllexport) +# else +# define EXTERN extern __declspec(dllimport) +# endif # else -# define EXTERN extern __declspec(dllimport) +# define EXTERN extern # endif #else # define EXTERN extern