[Compilers] Fix MSVC compilation with CMake (#178)

Co-authored-by: Nic Barker <contact+github@nicbarker.com>
This commit is contained in:
Funto 2025-01-10 08:59:13 +01:00 committed by GitHub
parent 670f707997
commit e11a394c25
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 37 additions and 18 deletions

2
clay.h
View file

@ -93,6 +93,8 @@
// Note: If an error led you here, it's because CLAY_STRING can only be used with string literals, i.e. CLAY_STRING("SomeString") and not CLAY_STRING(yourString)
#define CLAY_STRING(string) (CLAY__INIT(Clay_String) { .length = CLAY__STRING_LENGTH(CLAY__ENSURE_STRING_LITERAL(string)), .chars = (string) })
#define CLAY_STRING_CONST(string) { .length = CLAY__STRING_LENGTH(CLAY__ENSURE_STRING_LITERAL(string)), .chars = (string) }
static uint8_t CLAY__ELEMENT_DEFINITION_LATCH;
// Publicly visible layout element macros -----------------------------------------------------