Mmg
Simplicial remeshers (mesh adaptation, isovalue discretization, lagrangian movement)
mmg_export.h
Go to the documentation of this file.
1/* ============================================================================ =
2** This file is part of the mmg software package for the tetrahedral
3** mesh modification.
4** Copyright(c) Bx INP / CNRS / Inria / UBordeaux / UPMC, 2004 -
5**
6** mmg is free software : you can redistribute it and/or modify it
7** under the terms of the GNU Lesser General Public License as published
8** by the Free Software Foundation, either version 3 of the License, or
9** (at your option) any later version.
10**
11** mmg is distributed in the hope that it will be useful, but WITHOUT
12** ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13** FITNESS FOR A PARTICULAR PURPOSE.See the GNU Lesser General Public
14** License for more details.
15**
16** You should have received a copy of the GNU Lesser General Public
17** License and of the GNU General Public License along with mmg(in
18** files COPYING.LESSER and COPYING).If not, see
19** <http://www.gnu.org/licenses/>. Please read their terms carefully and
20** use this copy of the mmg distribution only if you accept them.
21** ============================================================================ =
22*/
23
24#ifndef MMG_EXPORT_H
25#define MMG_EXPORT_H
26
27#include "mmg/common/mmgcmakedefines.h"
28
29#if(MMG_DYN_LIB)
30# if defined(_WIN32) || defined(_WIN32) || defined(_WIN64) || defined(__WIN32__) || defined(__TOS_WIN__) || defined(__WINDOWS__)
31# define MMG_DECL_EXPORT __declspec(dllexport)
32# define MMG_DECL_IMPORT __declspec(dllimport)
33# define MMG_DECL_HIDDEN
34# elif(__GNUC__ >= 4)
35# define MMG_DECL_EXPORT __attribute__((visibility("default")))
36# define MMG_DECL_IMPORT __attribute__((visibility("default")))
37# define MMG_DECL_HIDDEN __attribute__((visibility("hidden")))
38# endif
39#endif
40
41#if !defined(MMG_DECL_EXPORT)
42# define MMG_DECL_EXPORT
43# define MMG_DECL_IMPORT
44# define MMG_DECL_HIDDEN
45#endif
46
47#endif