From c78dbba67485ecd6491d4a0057b50f2ee685279d Mon Sep 17 00:00:00 2001 From: Sara Date: Tue, 21 Nov 2023 11:03:09 +0100 Subject: [PATCH] windows does not consider object initializers with a cast operator static --- core/src/asset.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/asset.h b/core/src/asset.h index c113ed5..f5739b7 100644 --- a/core/src/asset.h +++ b/core/src/asset.h @@ -23,7 +23,7 @@ static inline Asset T##_as_Asset(T* x) {\ TC_FN_TYPECHECK(asset_id, get_id_f, T*);\ TC_FN_TYPECHECK(void, set_id_f, T*, asset_id);\ TC_FN_TYPECHECK(Drop, T##_as_Drop, T*);\ - static IAsset tc = (IAsset){\ + static IAsset const tc = {\ .get_id = (asset_id(*const)(void*)) get_id_f,\ .set_id = (void(*const)(void*,asset_id)) set_id_f,\ };\