Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
visibility.h
00001 /* visibility.h 00002 * 00003 * Copyright (C) 2006-2013 wolfSSL Inc. 00004 * 00005 * This file is part of CyaSSL. 00006 * 00007 * CyaSSL is free software; you can redistribute it and/or modify 00008 * it under the terms of the GNU General Public License as published by 00009 * the Free Software Foundation; either version 2 of the License, or 00010 * (at your option) any later version. 00011 * 00012 * CyaSSL is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 * GNU General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU General Public License 00018 * along with this program; if not, write to the Free Software 00019 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA 00020 */ 00021 00022 /* Visibility control macros */ 00023 00024 00025 #ifndef CTAO_CRYPT_VISIBILITY_H 00026 #define CTAO_CRYPT_VISIBILITY_H 00027 00028 00029 /* CYASSL_API is used for the public API symbols. 00030 It either imports or exports (or does nothing for static builds) 00031 00032 CYASSL_LOCAL is used for non-API symbols (private). 00033 */ 00034 00035 #if defined(BUILDING_CYASSL) 00036 #if defined(HAVE_VISIBILITY) && HAVE_VISIBILITY 00037 #define CYASSL_API __attribute__ ((visibility("default"))) 00038 #define CYASSL_LOCAL __attribute__ ((visibility("hidden"))) 00039 #elif defined(__SUNPRO_C) && (__SUNPRO_C >= 0x550) 00040 #define CYASSL_API __global 00041 #define CYASSL_LOCAL __hidden 00042 #elif defined(_MSC_VER) 00043 #ifdef CYASSL_DLL 00044 #define CYASSL_API extern __declspec(dllexport) 00045 #else 00046 #define CYASSL_API 00047 #endif 00048 #define CYASSL_LOCAL 00049 #else 00050 #define CYASSL_API 00051 #define CYASSL_LOCAL 00052 #endif /* HAVE_VISIBILITY */ 00053 #else /* BUILDING_CYASSL */ 00054 #if defined(_MSC_VER) 00055 #ifdef CYASSL_DLL 00056 #define CYASSL_API extern __declspec(dllimport) 00057 #else 00058 #define CYASSL_API 00059 #endif 00060 #define CYASSL_LOCAL 00061 #else 00062 #define CYASSL_API 00063 #define CYASSL_LOCAL 00064 #endif 00065 #endif /* BUILDING_CYASSL */ 00066 00067 00068 #endif /* CTAO_CRYPT_VISIBILITY_H */ 00069
Generated on Tue Jul 12 2022 20:12:52 by
