1 // ***************************************************************************
2 // bamtools_global.h (c) 2010 Derek Barnett
3 // Marth Lab, Department of Biology, Boston College
4 // All rights reserved.
5 // ---------------------------------------------------------------------------
6 // Last modified: 19 November 2010 (DB)
7 // ---------------------------------------------------------------------------
8 // Provides the basic definitions for exporting & importing library symbols
9 // ***************************************************************************
11 #ifndef BAMTOOLS_GLOBAL_H
12 #define BAMTOOLS_GLOBAL_H
14 // BAMTOOLS_LIBRARY_EXPORT
15 #ifndef BAMTOOLS_LIBRARY_EXPORT
17 # define BAMTOOLS_LIBRARY_EXPORT __declspec(dllexport)
19 # define BAMTOOLS_LIBRARY_EXPORT __attribute__((visibility("default")))
21 #endif // BAMTOOLS_LIBRARY_EXPORT
23 // BAMTOOLS_LIBRARY_IMPORT
24 #ifndef BAMTOOLS_LIBRARY_IMPORT
26 # define BAMTOOLS_LIBRARY_IMPORT __declspec(dllimport)
28 # define BAMTOOLS_LIBRARY_IMPORT
30 #endif // BAMTOOLS_LIBRARY_IMPORT
32 #endif // BAMTOOLS_GLOBAL_H