From 00e2eb4fd0266c5be01e3a527a66aaad5ab4b634 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 15 Apr 2024 07:47:37 +0200 Subject: Adding upstream version 0.19.0. Signed-off-by: Daniel Baumann --- include/ixion/env.hpp | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 include/ixion/env.hpp (limited to 'include/ixion/env.hpp') diff --git a/include/ixion/env.hpp b/include/ixion/env.hpp new file mode 100644 index 0000000..c164a1d --- /dev/null +++ b/include/ixion/env.hpp @@ -0,0 +1,61 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + +#ifndef INCLUDED_IXION_ENV_HPP +#define INCLUDED_IXION_ENV_HPP + +#if defined _WIN32 || defined __CYGWIN__ + #if defined __MINGW32__ + #define IXION_DLLPUBLIC + #define IXION_DLLPUBLIC_VAR extern + #elif defined IXION_BUILD + #ifdef DLL_EXPORT + #define IXION_DLLPUBLIC __declspec(dllexport) + #define IXION_DLLPUBLIC_VAR extern __declspec(dllexport) + #else + #define IXION_DLLPUBLIC + #define IXION_DLLPUBLIC_VAR extern + #endif + #else + #define IXION_DLLPUBLIC __declspec(dllimport) + #define IXION_DLLPUBLIC_VAR extern __declspec(dllimport) + #endif + #define IXION_DLLLOCAL +#else + #if defined __GNUC__ && __GNUC__ >= 4 + #define IXION_DLLPUBLIC __attribute__ ((visibility ("default"))) + #define IXION_DLLLOCAL __attribute__ ((visibility ("hidden"))) + #else + #define IXION_DLLPUBLIC + #define IXION_DLLLOCAL + #endif + #define IXION_DLLPUBLIC_VAR IXION_DLLPUBLIC extern +#endif + +#if _WIN32 +#define IXION_MOD_EXPORT __declspec(dllexport) +#else +#define IXION_MOD_EXPORT __attribute__ ((visibility ("default"))) +#endif + +#if defined(IXION_TRACE_ON) || defined(IXION_DEBUG_ON) +#define IXION_LOGGING 1 +#else +#define IXION_LOGGING 0 +#endif + +#ifdef __GNUC__ + #define IXION_DEPRECATED __attribute__ ((deprecated)) +#elif defined(_MSC_VER) + #define IXION_DEPRECATED __declspec(deprecated) +#else + #define IXION_DEPRECATED +#endif + +#endif + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit v1.2.3