Fix windows libobjc build (PR libobjc/93099)
authorAndrew Pinski <pinskia@gmail.com>
Wed, 1 Jan 2020 22:16:35 +0000 (14:16 -0800)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Wed, 1 Jan 2020 22:16:35 +0000 (14:16 -0800)
2020-01-01  Andrew Pinski  <pinskia@gmail.com>

        PR libobjc/93099
        * objc/objc-decls.h (objc_EXPORT): Define it to
        extern for DLL_EXPORT define case.

From-SVN: r279822

libobjc/ChangeLog
libobjc/objc/objc-decls.h

index 0c77cba..b8ebab2 100644 (file)
@@ -1,3 +1,9 @@
+2020-01-01  Andrew Pinski  <pinskia@gmail.com>
+
+       PR libobjc/93099
+       * objc/objc-decls.h (objc_EXPORT): Define it to
+       extern for DLL_EXPORT define case.
+
 2020-01-01  Jakub Jelinek  <jakub@redhat.com>
 
        Update copyright years.
index 7abe87e..3f5b28b 100644 (file)
@@ -29,7 +29,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
 #if defined (_WIN32) || defined (__WIN32__) || defined (WIN32)
 
 #  ifdef DLL_EXPORT /* defined by libtool (if required) */
-#    define objc_EXPORT 
+#    define objc_EXPORT extern
 #    define objc_DECLARE
 #  else
 #    define objc_EXPORT  extern __declspec(dllimport)