aboutsummaryrefslogtreecommitdiff
path: root/libobjc/objc
diff options
context:
space:
mode:
authorAndrew Pinski <pinskia@gmail.com>2020-01-01 14:16:35 -0800
committerAndrew Pinski <pinskia@gcc.gnu.org>2020-01-01 14:16:35 -0800
commitb31f1b64ab243b3c5879479577583b813672892d (patch)
tree449b43d821c4c996f342c1656b012756ef2bc058 /libobjc/objc
parentba4c5da7dba6f93125f4805dcc271c750d711b59 (diff)
downloadgcc-b31f1b64ab243b3c5879479577583b813672892d.zip
gcc-b31f1b64ab243b3c5879479577583b813672892d.tar.gz
gcc-b31f1b64ab243b3c5879479577583b813672892d.tar.bz2
Fix windows libobjc build (PR libobjc/93099)
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
Diffstat (limited to 'libobjc/objc')
-rw-r--r--libobjc/objc/objc-decls.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libobjc/objc/objc-decls.h b/libobjc/objc/objc-decls.h
index 7abe87e..3f5b28b 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)