From 902ff3b0a913bfab26129a23c68fd2d38927ea70 Mon Sep 17 00:00:00 2001 From: Stowy Date: Tue, 31 Dec 2024 05:51:18 +0100 Subject: [PATCH] Fixed compilation using clang on windows (#134) --- clay.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clay.h b/clay.h index 02b84aa..8d25889 100644 --- a/clay.h +++ b/clay.h @@ -134,7 +134,7 @@ CLAY__ALIGNMENT_STRUCT(bool); CLAY__ALIGNMENT_STRUCT(uint8_t); CLAY__ALIGNMENT_STRUCT(int32_t); -#ifdef _MSC_VER +#if defined(_MSC_VER) && !defined(__clang__) #define CLAY_PACKED_ENUM __pragma(pack(push, 1)) enum __pragma(pack(pop)) #else #define CLAY_PACKED_ENUM enum __attribute__((__packed__))