Main MRPT website > C++ reference for MRPT 1.5.6
hwdrivers/include/mrpt/hwdrivers/link_pragmas.h
Go to the documentation of this file.
1 /* +---------------------------------------------------------------------------+
2  | Mobile Robot Programming Toolkit (MRPT) |
3  | http://www.mrpt.org/ |
4  | |
5  | Copyright (c) 2005-2017, Individual contributors, see AUTHORS file |
6  | See: http://www.mrpt.org/Authors - All rights reserved. |
7  | Released under BSD License. See details in http://www.mrpt.org/License |
8  +---------------------------------------------------------------------------+ */
9 
10 #pragma once
11 
12 #include <mrpt/config.h>
13 
14 // ** Important! **
15 // In each mrpt library, search and replace:
16 // MRPT_XXX_EXPORT, MRPT_XXX_IMPORT
17 // HWDRIVERS_IMPEXP, mrpt_xxx_EXPORTS
18 
19 
20 /* The macros below for DLL import/export are required for Windows only.
21  Mostly all the definitions in this file are copied or at least hwdriversd
22  on the file wx/dlimpexp.h, written by Vadim Zeitlin and published
23  under the wxWindows licence.
24 */
25 #if defined(MRPT_OS_WINDOWS)
26  #define MRPT_HWDRIVERS_EXPORT __declspec(dllexport)
27  #define MRPT_HWDRIVERS_IMPORT __declspec(dllimport)
28 #else
29 # define MRPT_HWDRIVERS_EXPORT
30 # define MRPT_HWDRIVERS_IMPORT
31 #endif
32 
33 /* Macros that map to export declaration when building the DLL, to import
34  declaration if using it or to nothing at all if we are not compiling as DLL */
35 #if defined(MRPT_BUILT_AS_DLL)
36 # if defined(mrpt_hwdrivers_EXPORTS) /* Building the DLL */
37 # define HWDRIVERS_IMPEXP MRPT_HWDRIVERS_EXPORT
38 # else /* Using the DLL */
39 # define HWDRIVERS_IMPEXP MRPT_HWDRIVERS_IMPORT
40 # endif
41 #else /* not making nor using DLL */
42 # define HWDRIVERS_IMPEXP
43 #endif
44 



Page generated by Doxygen 1.8.14 for MRPT 1.5.6 Git: 4c65e8431 Tue Apr 24 08:18:17 2018 +0200 at lun oct 28 01:35:26 CET 2019