summaryrefslogtreecommitdiffstats
path: root/include/ixion/env.hpp
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 05:47:37 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 05:47:37 +0000
commit00e2eb4fd0266c5be01e3a527a66aaad5ab4b634 (patch)
treea6a58bd544eb0b76b9d3acc678ea88791acca045 /include/ixion/env.hpp
parentInitial commit. (diff)
downloadlibixion-upstream.tar.xz
libixion-upstream.zip
Adding upstream version 0.19.0.upstream/0.19.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--include/ixion/env.hpp61
1 files changed, 61 insertions, 0 deletions
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: */