From: Andrew Pinski Date: Wed, 1 Jan 2020 22:16:35 +0000 (-0800) Subject: Fix windows libobjc build (PR libobjc/93099) X-Git-Tag: misc/cutover-git~199 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b31f1b64ab243b3c5879479577583b813672892d;p=thirdparty%2Fgcc.git Fix windows libobjc build (PR libobjc/93099) 2020-01-01 Andrew Pinski PR libobjc/93099 * objc/objc-decls.h (objc_EXPORT): Define it to extern for DLL_EXPORT define case. From-SVN: r279822 --- diff --git a/libobjc/ChangeLog b/libobjc/ChangeLog index 0c77cba42896..b8ebab2beae0 100644 --- a/libobjc/ChangeLog +++ b/libobjc/ChangeLog @@ -1,3 +1,9 @@ +2020-01-01 Andrew Pinski + + PR libobjc/93099 + * objc/objc-decls.h (objc_EXPORT): Define it to + extern for DLL_EXPORT define case. + 2020-01-01 Jakub Jelinek Update copyright years. diff --git a/libobjc/objc/objc-decls.h b/libobjc/objc/objc-decls.h index 7abe87ebd92f..3f5b28b15858 100644 --- a/libobjc/objc/objc-decls.h +++ b/libobjc/objc/objc-decls.h @@ -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)