source: pacpusframework/trunk/include/Pacpus/kernel/PacpusLibConfig.h@ 116

Last change on this file since 116 was 116, checked in by Marek Kurdej, 11 years ago

Added: PacpusException - base class for all exceptions. DbiteExceptions inherits from it.
Added: PacpusLibConfig.h - dllimport/dllexport clauses separated from pacpus.h.
Update: comments.

File size: 1.2 KB
Line 
1// %pacpus:license{
2// This file is part of the PACPUS framework distributed under the
3// CECILL-C License, Version 1.0.
4// %pacpus:license}
5/// @file
6/// @author Marek Kurdej <firstname.surname@utc.fr>
7/// @date January, 2013
8/// @version $Id: FileLibConfig.h 76 2013-01-10 17:05:10Z kurdejma $
9/// @copyright Copyright (c) UTC/CNRS Heudiasyc 2006 - 2013. All rights reserved.
10/// @brief DLL import/export macro definitions file.
11///
12/// DLL import/export macro definitions file.
13/// Declares \<library name\>_API macro as __declspec(dllexport) or __declspec(dllimport)
14/// on Windows system and as an empty macro on other systems.
15/// DLL exporting is performed when \<library name\>_EXPORTS is defined.
16
17#ifndef DEF_PACPUS_PACPUSLIBCONFIG_H
18#define DEF_PACPUS_PACPUSLIBCONFIG_H
19
20/// Export macro for PacpusLib DLL for Windows only
21#ifdef WIN32
22# ifdef PACPUSLIB_EXPORTS
23// make DLL
24# define PACPUSLIB_API __declspec(dllexport)
25# else
26// use DLL
27# define PACPUSLIB_API __declspec(dllimport)
28# endif
29#else
30// On other platforms, simply ignore this
31# define PACPUSLIB_API
32#endif
33
34#endif // DEF_PACPUS_PACPUSLIBCONFIG_H
Note: See TracBrowser for help on using the repository browser.