blob: 2cdfd149b66cda39ea4dd4a762907e8f67e12a2a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
/* SPDX-License-Identifier: BSL-1.0 OR BSD-3-Clause */
#ifndef MPT_DETECT_MFC_HPP
#define MPT_DETECT_MFC_HPP
#include "mpt/base/compiletime_warning.hpp"
#if defined(MPT_WITH_MFC)
#if !defined(CPPCHECK)
#if !__has_include(<afx.h>)
#error "MPT_WITH_MFC defined but <afx.h> not found."
#endif
#endif
#if !MPT_COMPILER_GENERIC && !MPT_COMPILER_MSVC && !MPT_COMPILER_CLANG
MPT_WARNING("Using MFC with unsupported compiler.")
#endif
#define MPT_DETECTED_MFC 1
#else
#define MPT_DETECTED_MFC 0
#endif
#endif // MPT_DETECT_MFC_HPP
|