Skip to content

Commit

Permalink
fix: move macro to only non-ledger envs
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosala committed Oct 12, 2023
1 parent 393d53e commit 20c03b6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 0 additions & 4 deletions include/zxmacros.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,6 @@ extern void explicit_bzero(void *s, size_t n) __THROW __nonnull ((1));
#define __Z_UNUSED __attribute__((unused))
#define NV_ALIGN __attribute__ ((aligned(64)))

#ifndef UNUSED
#define UNUSED(x) (void)x
#endif

#if defined(LEDGER_SPECIFIC)
#include "bolos_target.h"
#endif
Expand Down
4 changes: 4 additions & 0 deletions include/zxmacros_x64.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@
#define CX_ECCINFO_PARITY_ODD 1u
#define CX_ECCINFO_xGTn 2u

#ifndef UNUSED
#define UNUSED(x) (void)x
#endif

#ifndef __APPLE__
#define MEMZERO explicit_bzero
#else
Expand Down

0 comments on commit 20c03b6

Please sign in to comment.