blob: da24272e2ee70939b325ac0e4319d3b5ac6c829d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
/* SPDX-License-Identifier: BSL-1.0 OR BSD-3-Clause */
#ifndef MPT_DETECT_DL_HPP
#define MPT_DETECT_DL_HPP
#include "mpt/base/compiletime_warning.hpp"
#if defined(MPT_WITH_DL)
#if !defined(CPPCHECK)
#if !__has_include(<dlfcn.h>)
#error "MPT_WITH_DL defined but <dlfcn.h> not found."
#endif
#endif
#define MPT_DETECTED_DL 1
#else
#if defined(CPPCHECK)
#define MPT_DETECTED_DL 1
#else
#if __has_include(<dlfcn.h>)
#define MPT_DETECTED_DL 1
#else
#define MPT_DETECTED_DL 0
#endif
#endif
#endif
#endif // MPT_DETECT_DL_HPP
|