Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'ALIGN' macro redefined #29

Open
Arthur111 opened this issue Dec 13, 2015 · 0 comments
Open

'ALIGN' macro redefined #29

Arthur111 opened this issue Dec 13, 2015 · 0 comments

Comments

@Arthur111
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant