NCBI C++ ToolKit
creaders_export.h
Go to the documentation of this file.

Go to the SVN repository for this file.

1 #ifndef UTIL_CREADERS___CREADERS_EXPORT__H
2 #define UTIL_CREADERS___CREADERS_EXPORT__H
3 
4 /* $Id: creaders_export.h 42576 2009-07-22 15:51:55Z ucko $
5  * ===========================================================================
6  *
7  * PUBLIC DOMAIN NOTICE
8  * National Center for Biotechnology Information
9  *
10  * This software/database is a "United States Government Work" under the
11  * terms of the United States Copyright Act. It was written as part of
12  * the author's official duties as a United States Government employee and
13  * thus cannot be copyrighted. This software/database is freely available
14  * to the public for use. The National Library of Medicine and the U.S.
15  * Government have not placed any restriction on its use or reproduction.
16  *
17  * Although all reasonable efforts have been taken to ensure the accuracy
18  * and reliability of the software and data, the NLM and the U.S.
19  * Government do not and cannot warrant the performance or results that
20  * may be obtained by using this software or data. The NLM and the U.S.
21  * Government disclaim all warranties, express or implied, including
22  * warranties of performance, merchantability or fitness for any particular
23  * purpose.
24  *
25  * Please cite the author in any work or product based on this material.
26  *
27  * ===========================================================================
28  *
29  * Authors: Anatoliy Kuznetsov, Mike DiCuccio, Aaron Ucko
30  *
31  * File Description:
32  * Defines to provide correct exporting from CREADERS DLL in Windows.
33  * These are necessary to compile DLLs with Visual C++ - exports must be
34  * explicitly labeled as such.
35  */
36 
37 
38 /** @addtogroup WinDLL
39  *
40  * @{
41  */
42 
43 
44 #if defined(WIN32) && defined(NCBI_DLL_BUILD)
45 
46 #ifndef _MSC_VER
47 # error "This toolkit is not buildable with a compiler other than MSVC."
48 #endif
49 
50 
51 /*
52  * Dumping ground for Windows-specific stuff
53  */
54 #pragma warning (disable : 4786 4251 4275)
55 
56 
57 #ifdef NCBI_CORE_EXPORTS
58 # define NCBI_CREADERS_EXPORTS
59 #endif
60 
61 
62 #ifdef NCBI_CREADERS_EXPORTS
63 # define NCBI_CREADERS_EXPORT __declspec(dllexport)
64 #else
65 # define NCBI_CREADERS_EXPORT __declspec(dllimport)
66 #endif
67 
68 
69 #elif defined(__GNUC__) && __GNUC__ >= 4
70 
71 # define NCBI_CREADERS_EXPORT __attribute__((visibility("default")))
72 
73 #else
74 
75 /*
76  * NULL operations for other cases
77  */
78 
79 # define NCBI_CREADERS_EXPORT
80 
81 
82 #endif
83 
84 
85 /* @} */
86 
87 #endif /* UTIL_CREADERS___CREADERS_EXPORT__H */
Modified on Mon Dec 11 02:36:30 2023 by modify_doxy.py rev. 669887