Skip to content

Commit

Permalink
include: remove unneeded macOS references
Browse files Browse the repository at this point in the history
The library does not support macOS.

Signed-off-by: Pablo de Lara <[email protected]>
  • Loading branch information
pablodelara authored and mdcornu committed Apr 29, 2024
1 parent 17be622 commit 96f24e8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion include/aes_gcm.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
;
Expand Down
4 changes: 2 additions & 2 deletions include/test.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 <sys/time.h>
#endif

Expand All @@ -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)
{
Expand Down
2 changes: 1 addition & 1 deletion include/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 96f24e8

Please sign in to comment.