Medical Imaging Interaction Toolkit
2026.06.00
Medical Imaging Interaction Toolkit
usGlobalConfig.h
Go to the documentation of this file.
1
/*============================================================================
2
3
The Medical Imaging Interaction Toolkit (MITK)
4
5
Copyright (c) German Cancer Research Center (DKFZ)
6
All rights reserved.
7
8
Use of this source code is governed by a 3-clause BSD license that can be
9
found in the LICENSE file.
10
11
============================================================================*/
12
13
#ifndef USGLOBALCONFIG_H
14
#define USGLOBALCONFIG_H
15
16
//-------------------------------------------------------------------
17
// Platform defines
18
//-------------------------------------------------------------------
19
20
#if defined(__APPLE__)
21
#define US_PLATFORM_APPLE
22
#endif
23
24
#if defined(__linux__)
25
#define US_PLATFORM_LINUX
26
#endif
27
28
#if defined(_WIN32) || defined(_WIN64)
29
#define US_PLATFORM_WINDOWS
30
#else
31
#define US_PLATFORM_POSIX
32
#endif
33
34
//-------------------------------------------------------------------
35
// Macros for import/export declarations
36
//-------------------------------------------------------------------
37
38
#if defined(US_PLATFORM_WINDOWS)
39
#define US_ABI_EXPORT __declspec(dllexport)
40
#define US_ABI_IMPORT __declspec(dllimport)
41
#define US_ABI_LOCAL
42
#else
43
#define US_ABI_EXPORT __attribute__ ((visibility ("default"
)))
44
#define US_ABI_IMPORT __attribute__ ((visibility ("default"
)))
45
#define US_ABI_LOCAL __attribute__ ((visibility ("hidden"
)))
46
#endif
47
48
//-------------------------------------------------------------------
49
// Macros for suppressing warnings
50
//-------------------------------------------------------------------
51
52
#ifdef _MSC_VER
53
#define US_MSVC_PUSH_DISABLE_WARNING(wn) \
54
__pragma(warning(push)) \
55
__pragma(warning(disable:wn))
56
#define US_MSVC_POP_WARNING \
57
__pragma(warning(pop))
58
#define US_MSVC_DISABLE_WARNING(wn) \
59
__pragma(warning(disable:wn))
60
#else
61
#define US_MSVC_PUSH_DISABLE_WARNING(wn)
62
#define US_MSVC_POP_WARNING
63
#define US_MSVC_DISABLE_WARNING(wn)
64
#endif
65
66
// Do not warn about the usage of deprecated unsafe functions
67
US_MSVC_DISABLE_WARNING
(4996)
68
69
#endif
// USGLOBALCONFIG_H
US_MSVC_DISABLE_WARNING
#define US_MSVC_DISABLE_WARNING(wn)
Definition:
usGlobalConfig.h:63
src
MITK
Modules
CppMicroServices
include
usGlobalConfig.h
Generated by
1.9.1