RxDock 0.1.0
A fast, versatile, and open-source program for docking ligands to proteins and nucleic acids
Loading...
Searching...
No Matches
Export.h
Go to the documentation of this file.
1//===-- Export.h - Symbol export macros -------------------------*- C++ -*-===//
2//
3// Part of the RxDock project, under the GNU LGPL version 3.
4// Visit https://rxdock.gitlab.io/ for more information.
5// Copyright (c) 1998--2006 RiboTargets (subsequently Vernalis (R&D) Ltd)
6// Copyright (c) 2006--2012 University of York
7// Copyright (c) 2012--2014 University of Barcelona
8// Copyright (c) 2019--2020 RxTx
9// SPDX-License-Identifier: LGPL-3.0-only
10//
11//===----------------------------------------------------------------------===//
16//===----------------------------------------------------------------------===//
17
18#ifndef RXDOCK_SUPPORT_EXPORT_H
19#define RXDOCK_SUPPORT_EXPORT_H
20
21#if defined _WIN32 || defined __CYGWIN__
22#ifdef __GNUC__
23#define RBTDLL_EXPORT __attribute__((dllexport))
24#define RBTDLL_IMPORT __attribute__((dllimport))
25#else
26#define RBTDLL_EXPORT __declspec(dllexport)
27#define RBTDLL_IMPORT __declspec(dllimport)
28#endif
29#define RBTDLL_LOCAL
30#else
31#if __GNUC__ >= 4
32#define RBTDLL_EXPORT __attribute__((visibility("default")))
33#define RBTDLL_IMPORT __attribute__((visibility("default")))
34#define RBTDLL_LOCAL __attribute__((visibility("hidden")))
35#else
36#define RBTDLL_EXPORT
37#define RBTDLL_IMPORT
38#define RBTDLL_LOCAL
39#endif
40#endif
41
42// Same rules apply to Loguru logging library
43#define LOGURU_EXPORT RBTDLL_EXPORT
44
45#endif // RXDOCK_SUPPORT_EXPORT_H