Fix linking issue on Windows. (#2587)
Some checks failed
Run Test / ${{ matrix.config.name }} (map[arch:x64 build-system:cmake diet-build:OFF enable-asan:OFF name:ubuntu-22.04 x64 cmake os:ubuntu-22.04]) (push) Has been cancelled
Run Test / ${{ matrix.config.name }} (map[arch:x64 build-system:cmake diet-build:OFF enable-asan:ON name:ubuntu-24.04 x64 ASAN os:ubuntu-24.04]) (push) Has been cancelled
Run Test / ${{ matrix.config.name }} (map[arch:x64 build-system:make diet-build:OFF enable-asan:OFF name:ubuntu-22.04 x64 make os:ubuntu-22.04]) (push) Has been cancelled
Run Test / ${{ matrix.config.name }} (map[arch:x64 name:windows x64 MSVC 64bit os:windows-latest platform:windows python-arch:x64 python-version:3.9]) (push) Has been cancelled
Run clang-tidy / clang-tidy (push) Has been cancelled

Inline functions are apparently not exposed with default visibility.
Fixes: https://github.com/capstone-engine/capstone/issues/2585
This commit is contained in:
Rot127 2024-12-26 12:01:36 +00:00 committed by GitHub
parent e160cbc59e
commit 186f7aa09f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -107,7 +107,7 @@ static const name_map insn_name_maps[BPF_INS_ENDING] = {
};
#endif
inline bool BPF_getFeature(const cs_mode mode, const cs_mode feature)
bool BPF_getFeature(const cs_mode mode, const cs_mode feature)
{
return (mode & feature);
}