]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* demo/foo.h: Don't set any declspecs until we have full dlli
authorGary V. Vaughan <gary@gnu.org>
Mon, 17 May 1999 13:37:05 +0000 (13:37 +0000)
committerGary V. Vaughan <gary@gnu.org>
Mon, 17 May 1999 13:37:05 +0000 (13:37 +0000)
support.

ChangeLog
demo/foo.h

index f560091f1b669136f1df1ed21fc48aa4852a48e0..5318cdd4a09a10ba2496fee747648110fe96f3cf 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+1999-05-17  Gary V. Vaughan  <gary@oranda.demon.co.uk>
+
+       * demo/foo.h: Don't set any declspecs until we have full dlli
+       support.
+
 1999-05-16  Alexandre Oliva  <oliva@dcc.unicamp.br>
 
        * ltconfig.in (solaris2.6, whole_archive_flag_spec): Do not use
index 175c019cf68b89495b67e1661a5e4e1f34b3ff66..a240d50969cbb6cac789b72226105cb62415c803 100644 (file)
@@ -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