mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-09-08 18:42:27 -04:00
Merge pull request #2403 from PJB3005/pjb-26-09-07-mods-meta.hpp-msvc-warning-fix
mods/meta.hpp MSVC warning fix
This commit is contained in:
@@ -13,11 +13,15 @@
|
||||
* modmeta records. Each IMPORT_SERVICE/EXPORT_SERVICE/DEFINE_HOOK use places one
|
||||
* constant-initialized record object in the metadata section.
|
||||
*/
|
||||
#if defined(_MSVC_LANG) && !defined(__clang__)
|
||||
#define MOD_META_NO_ASAN
|
||||
#else
|
||||
#if defined(__has_attribute) && __has_attribute(no_sanitize)
|
||||
#define MOD_META_NO_ASAN __attribute__((no_sanitize("address")))
|
||||
#else
|
||||
#define MOD_META_NO_ASAN
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if defined(_WIN32)
|
||||
#pragma section("modmeta$a", read, write)
|
||||
|
||||
Reference in New Issue
Block a user