* config.gcc (cygwin tm_file): Add cygwin-stdint.h.
[official-gcc.git] / libobjc / objc / objc-decls.h
blob52938a2381c8e68dd85c389618f9a2244b7e2f02
1 /* GNU Objective-C Extern helpers for Win32.
2 Copyright (C) 2004 Free Software Foundation, Inc.
4 This file is part of GCC.
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.
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.
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
18 the Free Software Foundation, 51 Franklin Street, Fifth Floor,
19 Boston, MA 02110-1301, USA. */
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. */
27 #ifndef __objc_decls_INCLUDE_GNU
28 #define __objc_decls_INCLUDE_GNU
30 #if defined (_WIN32) || defined (__WIN32__) || defined (WIN32)
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
40 #else
42 # define objc_EXPORT extern
43 # define objc_DECLARE
45 #endif
47 #endif /* __objc_decls_INCLUDE_GNU */