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

Go to the SVN repository for this file.

1 #ifndef UTIL_TABLES___TABLES_EXPORT__H
2 #define UTIL_TABLES___TABLES_EXPORT__H
3 
4 /* $Id: tables_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 TABLES 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_TABLES_EXPORTS
59 #endif
60 
61 
62 #ifdef NCBI_TABLES_EXPORTS
63 # define NCBI_TABLES_EXPORT __declspec(dllexport)
64 #else
65 # define NCBI_TABLES_EXPORT __declspec(dllimport)
66 #endif /* NCBI_TABLES_EXPORTS */
67 
68 
69 
70 #elif defined(__GNUC__) && __GNUC__ >= 4
71 
72 # define NCBI_TABLES_EXPORT __attribute__((visibility("default")))
73 
74 #else
75 
76 /*
77  * NULL operations for other cases
78  */
79 
80 # define NCBI_TABLES_EXPORT
81 
82 
83 #endif
84 
85 
86 /* @} */
87 
88 #endif /* UTIL_TABLES___TABLES_EXPORT__H */
Modified on Thu Jul 18 16:01:41 2024 by modify_doxy.py rev. 669887