/usr/include/bamtools/shared/bamtools_global.h is in libbamtools-dev 2.3.0+dfsg-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 | // ***************************************************************************
// bamtools_global.h (c) 2010 Derek Barnett
// Marth Lab, Department of Biology, Boston College
// ---------------------------------------------------------------------------
// Last modified: 10 October 2011 (DB)
// ---------------------------------------------------------------------------
// Provides the basic definitions for exporting & importing library symbols.
// Also provides some platform-specific rules for definitions.
// ***************************************************************************
#ifndef BAMTOOLS_GLOBAL_H
#define BAMTOOLS_GLOBAL_H
/*! \brief Library export macro
\internal
*/
#ifndef BAMTOOLS_LIBRARY_EXPORT
# if defined(WIN32)
# define BAMTOOLS_LIBRARY_EXPORT __declspec(dllexport)
# else
# define BAMTOOLS_LIBRARY_EXPORT __attribute__((visibility("default")))
# endif
#endif // BAMTOOLS_LIBRARY_EXPORT
/*! \brief Library import macro
\internal
*/
#ifndef BAMTOOLS_LIBRARY_IMPORT
# if defined(WIN32)
# define BAMTOOLS_LIBRARY_IMPORT __declspec(dllimport)
# else
# define BAMTOOLS_LIBRARY_IMPORT
# endif
#endif // BAMTOOLS_LIBRARY_IMPORT
/*! \brief Platform-specific type definitions
\internal
*/
#ifndef BAMTOOLS_LFS
#define BAMTOOLS_LFS
# ifdef WIN32
# define ftell64(a) _ftelli64(a)
# define fseek64(a,b,c) _fseeki64(a,b,c)
# else
# define ftell64(a) ftello(a)
# define fseek64(a,b,c) fseeko(a,b,c)
# endif
#endif // BAMTOOLS_LFS
/*! \def ftell64(a)
\brief Platform-independent tell() operation.
\internal
*/
/*! \def fseek64(a,b,c)
\brief Platform-independent seek() operation.
\internal
*/
/*! \brief Platform-specific type definitions
\internal
*/
#ifndef BAMTOOLS_TYPES
#define BAMTOOLS_TYPES
# ifdef _MSC_VER
typedef char int8_t;
typedef unsigned char uint8_t;
typedef short int16_t;
typedef unsigned short uint16_t;
typedef int int32_t;
typedef unsigned int uint32_t;
typedef long long int64_t;
typedef unsigned long long uint64_t;
# else
# include <stdint.h>
# endif
#endif // BAMTOOLS_TYPES
//! \internal
inline void bamtools_noop(void) { }
/*! \brief Assert definitions
\internal
*/
#ifndef BAMTOOLS_ASSERTS
#define BAMTOOLS_ASSERTS
# ifdef NDEBUG
# define BT_ASSERT_UNREACHABLE bamtools_noop()
# define BT_ASSERT_X( condition, message ) bamtools_noop()
# else
# include <cassert>
# include <stdexcept>
# define BT_ASSERT_UNREACHABLE assert( false )
# define BT_ASSERT_X( condition, message ) if (!( condition )) { throw std::runtime_error( message ); }
# endif
#endif // BAMTOOLS_ASSERTS
#endif // BAMTOOLS_GLOBAL_H
|