From 96f24e8cb9f660eefdbbe57b3dfda60b6b34b96e Mon Sep 17 00:00:00 2001 From: Pablo de Lara Date: Mon, 29 Apr 2024 09:04:36 +0100 Subject: [PATCH] include: remove unneeded macOS references The library does not support macOS. Signed-off-by: Pablo de Lara --- include/aes_gcm.h | 2 +- include/test.h | 4 ++-- include/types.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/aes_gcm.h b/include/aes_gcm.h index 34607e2d..87f89a49 100644 --- a/include/aes_gcm.h +++ b/include/aes_gcm.h @@ -134,7 +134,7 @@ struct gcm_key_data { uint8_t shifted_hkey_8_k[GCM_ENC_KEY_LEN]; uint8_t shifted_hkey_n_k[GCM_ENC_KEY_LEN * (64 - 16)]; // Others vaes version needs 2x32 } -#if defined(__unix__) || (__APPLE__) || (__MINGW32__) +#if defined(__unix__) || (__MINGW32__) __attribute__((aligned(16))); #else ; diff --git a/include/test.h b/include/test.h index cdc3fed8..aa022094 100644 --- a/include/test.h +++ b/include/test.h @@ -49,7 +49,7 @@ extern "C" { } while (0) // Use sys/time.h functions for time -#if defined(__unix__) || (__APPLE__) || (__MINGW32__) +#if defined(__unix__) || (__MINGW32__) #include #endif @@ -66,7 +66,7 @@ struct perf { struct timeval tv; }; -#if defined(__unix__) || (__APPLE__) || (__MINGW32__) +#if defined(__unix__) || (__MINGW32__) static inline int perf_start(struct perf *p) { diff --git a/include/types.h b/include/types.h index 87226677..10ddaae6 100644 --- a/include/types.h +++ b/include/types.h @@ -40,7 +40,7 @@ extern "C" { #endif -#if defined __unix__ || defined __APPLE__ +#if defined __unix__ #define DECLARE_ALIGNED(decl, alignval) decl __attribute__((aligned(alignval))) #define __forceinline static inline #define aligned_free(x) free(x)