From 63a2546166d742a26aa4bcd36f4bc10c5c183212 Mon Sep 17 00:00:00 2001 From: Pol Henarejos Date: Tue, 2 Jan 2024 20:36:48 +0100 Subject: [PATCH] Fix CodeQL build. Signed-off-by: Pol Henarejos --- src/compat.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/compat.h b/src/compat.h index e0ffdd4..e2cb734 100644 --- a/src/compat.h +++ b/src/compat.h @@ -18,12 +18,10 @@ #ifndef _COMPAT_H_ #define _COMPAT_H_ -#ifdef __GNUC__ -#define PACK( __Declaration__ ) __Declaration__ __attribute__((__packed__)) -#endif - #ifdef _MSC_VER #define PACK( __Declaration__ ) __pragma( pack(push, 1) ) __Declaration__ __pragma( pack(pop) ) +#else +#define PACK( __Declaration__ ) __Declaration__ __attribute__((__packed__)) #endif #ifdef __cplusplus