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

Go to the SVN repository for this file.

1 #ifndef BLAST_EXPORT__H
2 #define BLAST_EXPORT__H
3 
4 /* $Id: blast_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  * Author: Viatcheslav Gorelenkov
30  *
31  */
32 
33 /** @file blast_export.h
34  * Defines to provide correct exporting from BLAST DLL in Windows.
35  * These are necessary to compile DLLs with Visual C++ - exports must be
36  * explicitly labeled as such.
37  */
38 
39 
40 
41 
42 #if defined(WIN32) && defined(NCBI_DLL_BUILD)
43 
44 #ifndef _MSC_VER
45 # error "This toolkit is not buildable with a compiler other than MSVC."
46 #endif
47 
48 
49 #ifdef NCBI_XALGO_EXPORTS
50 # define NCBI_XBLAST_EXPORT __declspec(dllexport)
51 #else
52 # define NCBI_XBLAST_EXPORT __declspec(dllimport)
53 #endif
54 
55 #elif defined(HAVE_ATTRIBUTE_VISIBILITY_DEFAULT)
56 
57 # define NCBI_XBLAST_EXPORT __attribute__((visibility("default")))
58 
59 #else
60 
61 /**
62  * NULL operations for other cases
63  */
64 
65 # define NCBI_XBLAST_EXPORT
66 
67 
68 #endif
69 
70 #endif /* BLAST_EXPORT__H */
Modified on Fri Jun 14 16:54:21 2024 by modify_doxy.py rev. 669887