blob: 52938a2381c8e68dd85c389618f9a2244b7e2f02 [file] [log] [blame]
Andrew Pinski435317e2004-05-25 19:10:54 +00001/* GNU Objective-C Extern helpers for Win32.
2 Copyright (C) 2004 Free Software Foundation, Inc.
3
4This file is part of GCC.
5
6GCC is free software; you can redistribute it and/or modify it
7under the terms of the GNU General Public License as published by the
8Free Software Foundation; either version 2, or (at your option) any
9later version.
10
11GCC is distributed in the hope that it will be useful, but WITHOUT
12ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
14License for more details.
15
16You should have received a copy of the GNU General Public License
17along with GCC; see the file COPYING. If not, write to
Kelley Cookf9d09c42005-08-17 03:21:42 +000018the Free Software Foundation, 51 Franklin Street, Fifth Floor,
19Boston, MA 02110-1301, USA. */
Andrew Pinski435317e2004-05-25 19:10:54 +000020
21/* As a special exception, if you link this library with files compiled
22 with GCC to produce an executable, this does not cause the resulting
23 executable to be covered by the GNU General Public License. This
24 exception does not however invalidate any other reasons why the
25 executable file might be covered by the GNU General Public License. */
26
27#ifndef __objc_decls_INCLUDE_GNU
28#define __objc_decls_INCLUDE_GNU
29
30#if defined (_WIN32) || defined (__WIN32__) || defined (WIN32)
31
32# ifdef DLL_EXPORT /* defined by libtool (if required) */
33# define objc_EXPORT __declspec(dllexport)
34# define objc_DECLARE __declspec(dllexport)
35#else
36# define objc_EXPORT extern __declspec(dllimport)
37# define objc_DECLARE extern __declspec(dllimport)
38#endif
39
40#else
41
42# define objc_EXPORT extern
43# define objc_DECLARE
44
45#endif
46
47#endif /* __objc_decls_INCLUDE_GNU */