gsl_defines.hh
Go to the documentation of this file.
/* -*- mia-c++ -*-
*
* This file is part of MIA - a toolbox for medical image analysis
* Copyright (c) Leipzig, Madrid 1999-2017 Gert Wollny
*
* MIA is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with MIA; if not, see <http://www.gnu.org/licenses/>.
*
*/
#ifndef mia_gsldefines_hh
#define mia_gsldefines_hh
#if defined(_MSC_VER)
# define DO_EXPORT __declspec(dllexport)
# define DO_IMPORT __declspec(dllimport)
#elif defined(__GNUC__)
# define DO_EXPORT __attribute__((visibility("default")))
# define DO_IMPORT __attribute__((visibility("default")))
#else
# define DO_EXPORT
# define DO_IMPORT
#endif
#ifdef miagsl_EXPORTS
#define EXPORT_GSL DO_EXPORT
#else
#define EXPORT_GSL DO_IMPORT
#endif
#endif