floodyberry / ed25519-donna

Implementations of a fast Elliptic-curve Digital Signature Algorithm
169 stars 47 forks source link

'ALIGN' macro redefined #29

Open Arthur111 opened 8 years ago

Arthur111 commented 8 years ago

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.