+2010-09-20 Peter Rosin <peda@lysator.liu.se>
+
+ tests: __declspec (dll{ex,im}port) in tests/exceptions.at
+ * tests/exceptions.at (common.h, module.h, lib.h) [w32]: Use
+ __declspec (dllimport) and __declspec (dllexport) instead of
+ the less portable __attribute__ ((dllimport)) and
+ __attribute__ ((dllexport)). Makes the test compile on MSVC.
+
2010-09-19 Peter Rosin <peda@lysator.liu.se>
tests: Import items from liba1 for MSVC.
# the regex). However, in this test, none of these situations apply,
# so we don't directly address it. Otherwise, the correct mechanism
# would be to avoid all of those flags, and instead explicitly decorate
-# all symbols with appropriate __attribute__ ((dllexport)) or
-# __attribute__ ((dllimport)) flags when building the DLLs and the
-# clients.
+# all symbols with appropriate __declspec (dllexport) or
+# __declspec (dllimport) flags when building the DLLs and the clients.
#
# For more information, see these two threads:
# http://lists.gnu.org/archive/html/bug-libtool/2010-06/msg00069.html
#if defined(__CYGWIN__) || defined(_WIN32)
# if defined(DLL_EXPORT) || defined(USING_COMMON_DLL)
# if defined(LIBTOOL_TEST_IN_COMMON)
-# define COMMON_IMPEXP __attribute__ ((dllexport))
+# define COMMON_IMPEXP __declspec (dllexport)
# else
-# define COMMON_IMPEXP __attribute__ ((dllimport))
+# define COMMON_IMPEXP __declspec (dllimport)
# endif
# else
# define COMMON_IMPEXP
#if defined(__CYGWIN__) || defined(_WIN32)
# if defined(DLL_EXPORT) || defined(USING_MODULE_DLL)
# if defined(LIBTOOL_TEST_IN_MODULE)
-# define MODULE_IMPEXP __attribute__ ((dllexport))
+# define MODULE_IMPEXP __declspec (dllexport)
# else
-# define MODULE_IMPEXP __attribute__ ((dllimport))
+# define MODULE_IMPEXP __declspec (dllimport)
# endif
# else
# define MODULE_IMPEXP
#if defined(__CYGWIN__) || defined(_WIN32)
# if defined(DLL_EXPORT) || defined(USING_LIB_DLL)
# if defined(LIBTOOL_TEST_IN_LIB)
-# define LIB_IMPEXP __attribute__ ((dllexport))
+# define LIB_IMPEXP __declspec (dllexport)
# else
-# define LIB_IMPEXP __attribute__ ((dllimport))
+# define LIB_IMPEXP __declspec (dllimport)
# endif
# else
# define LIB_IMPEXP