Andrew Pinski | 435317e | 2004-05-25 19:10:54 +0000 | [diff] [blame] | 1 | /* GNU Objective-C Extern helpers for Win32. |
| 2 | Copyright (C) 2004 Free Software Foundation, Inc. |
| 3 | |
| 4 | This file is part of GCC. |
| 5 | |
| 6 | GCC is free software; you can redistribute it and/or modify it |
| 7 | under the terms of the GNU General Public License as published by the |
| 8 | Free Software Foundation; either version 2, or (at your option) any |
| 9 | later version. |
| 10 | |
| 11 | GCC is distributed in the hope that it will be useful, but WITHOUT |
| 12 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
| 13 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public |
| 14 | License for more details. |
| 15 | |
| 16 | You should have received a copy of the GNU General Public License |
| 17 | along with GCC; see the file COPYING. If not, write to |
Kelley Cook | f9d09c4 | 2005-08-17 03:21:42 +0000 | [diff] [blame] | 18 | the Free Software Foundation, 51 Franklin Street, Fifth Floor, |
| 19 | Boston, MA 02110-1301, USA. */ |
Andrew Pinski | 435317e | 2004-05-25 19:10:54 +0000 | [diff] [blame] | 20 | |
| 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 */ |