ed25519-donna icon indicating copy to clipboard operation
ed25519-donna copied to clipboard

'ALIGN' macro redefined

Open Arthur111 opened this issue 8 years ago • 0 comments

On Osx ALIGN is already defined on /usr/include(i386/param.h

define ALIGN(p) __DARWIN_ALIGN(p)

I just renamed it from (ed25519-donna-portable-identify.h) into ALIGN2 and in the followings files :

curve25519-donna-32bit.h curve25519-donna-helpers.h curve25519-donna-sse2.h ed25519-donna-32bit-tables.h ed25519-donna-basepoint-table.h ed25519-donna-batchverify.h ed25519-donna-impl-sse2.h ed25519-donna-portable.h ed25519.c test-internals.c

and it works

for curve25519-donna i just add :

ifdef ALIGN

undef ALIGN

endif

before

/* platform */

if defined(COMPILER_MSVC)

...

in file curve25519-donna-portable.h and its ok.

but for ed25519 its not so simple.

Arthur111 avatar Dec 13 '15 13:12 Arthur111