Skip to content

Commit

Permalink
ed25519-donna: Silence ALIGN macro redef warning
Browse files Browse the repository at this point in the history
  • Loading branch information
josh-ripple committed Nov 18, 2014
1 parent 1486087 commit bed548f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ed25519-donna/ed25519-donna-portable.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include <sys/param.h>
#define DONNA_INLINE inline __attribute__((always_inline))
#define DONNA_NOINLINE __attribute__((noinline))
#undef ALIGN

This comment has been minimized.

Copy link
@vinniefalco

vinniefalco Nov 25, 2014

Can we fix this without changing their sources?

This comment has been minimized.

Copy link
@josh-ripple

josh-ripple Nov 25, 2014

Author Owner

Yes, if they merge the change: floodyberry/ed25519-donna#21

This comment has been minimized.

Copy link
@vinniefalco

vinniefalco Nov 25, 2014

What I mean is can we include <sys/param.h> in unity/ed25519.c, undef ALIGN< and then include the header?

This comment has been minimized.

Copy link
@josh-ripple

josh-ripple Nov 26, 2014

Author Owner

Fixed.

#define ALIGN(x) __attribute__((aligned(x)))
#define ROTL32(a,b) (((a) << (b)) | ((a) >> (32 - b)))
#define ROTR32(a,b) (((a) >> (b)) | ((a) << (32 - b)))
Expand Down

0 comments on commit bed548f

Please sign in to comment.