source: asp3_tinet_ecnl_rx/trunk/wolfssl-3.12.2/wolfssl/wolfcrypt/visibility.h@ 337

Last change on this file since 337 was 337, checked in by coas-nagasima, 6 years ago

ASP3版ECNLを追加

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/x-chdr;charset=UTF-8
File size: 2.4 KB
Line 
1/* visibility.h
2 *
3 * Copyright (C) 2006-2017 wolfSSL Inc.
4 *
5 * This file is part of wolfSSL.
6 *
7 * wolfSSL is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 *
12 * wolfSSL is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
20 */
21
22
23/* Visibility control macros */
24
25#ifndef WOLF_CRYPT_VISIBILITY_H
26#define WOLF_CRYPT_VISIBILITY_H
27
28
29/* for compatibility and so that fips is using same name of macro @wc_fips */
30#ifdef HAVE_FIPS
31 #include <cyassl/ctaocrypt/visibility.h>
32 #define WOLFSSL_API CYASSL_API
33 #define WOLFSSL_LOCAL CYASSL_LOCAL
34#else
35
36/* WOLFSSL_API is used for the public API symbols.
37 It either imports or exports (or does nothing for static builds)
38
39 WOLFSSL_LOCAL is used for non-API symbols (private).
40*/
41
42#if defined(BUILDING_WOLFSSL)
43 #if defined(HAVE_VISIBILITY) && HAVE_VISIBILITY
44 #define WOLFSSL_API __attribute__ ((visibility("default")))
45 #define WOLFSSL_LOCAL __attribute__ ((visibility("hidden")))
46 #elif defined(__SUNPRO_C) && (__SUNPRO_C >= 0x550)
47 #define WOLFSSL_API __global
48 #define WOLFSSL_LOCAL __hidden
49 #elif defined(_MSC_VER) || defined(__MINGW32__)
50 #if defined(WOLFSSL_DLL)
51 #define WOLFSSL_API __declspec(dllexport)
52 #else
53 #define WOLFSSL_API
54 #endif
55 #define WOLFSSL_LOCAL
56 #else
57 #define WOLFSSL_API
58 #define WOLFSSL_LOCAL
59 #endif /* HAVE_VISIBILITY */
60#else /* BUILDING_WOLFSSL */
61 #if defined(_MSC_VER) || defined(__MINGW32__)
62 #if defined(WOLFSSL_DLL)
63 #define WOLFSSL_API __declspec(dllimport)
64 #else
65 #define WOLFSSL_API
66 #endif
67 #define WOLFSSL_LOCAL
68 #else
69 #define WOLFSSL_API
70 #define WOLFSSL_LOCAL
71 #endif
72#endif /* BUILDING_WOLFSSL */
73
74#endif /* HAVE_FIPS */
75#endif /* WOLF_CRYPT_VISIBILITY_H */
76
Note: See TracBrowser for help on using the repository browser.