diff options
author | Anatol Belski <ab@php.net> | 2017-07-11 10:01:37 +0200 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2017-07-11 10:01:37 +0200 |
commit | cbbf579f2178073b4d88c0bd2f2052e853a32a1e (patch) | |
tree | 343c4a49fbcdfcf01806744d9236b4e17a391141 /ext/sodium/php_libsodium.h | |
parent | 8cfe479d1f95fd09030892529918d8d68f23c43b (diff) | |
download | php-git-cbbf579f2178073b4d88c0bd2f2052e853a32a1e.tar.gz |
fix macro redifinitions
Diffstat (limited to 'ext/sodium/php_libsodium.h')
-rw-r--r-- | ext/sodium/php_libsodium.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/sodium/php_libsodium.h b/ext/sodium/php_libsodium.h index 93d92e3e03..a24c3e4fa5 100644 --- a/ext/sodium/php_libsodium.h +++ b/ext/sodium/php_libsodium.h @@ -96,9 +96,15 @@ PHP_FUNCTION(sodium_add); PHP_FUNCTION(sodium_memcmp); PHP_FUNCTION(sodium_memzero); +#ifndef crypto_kx_BYTES #define crypto_kx_BYTES crypto_scalarmult_BYTES +#endif +#ifndef crypto_kx_PUBLICKEYBYTES #define crypto_kx_PUBLICKEYBYTES crypto_scalarmult_SCALARBYTES +#endif +#ifndef crypto_kx_SECRETKEYBYTES #define crypto_kx_SECRETKEYBYTES crypto_scalarmult_SCALARBYTES +#endif #endif /* PHP_LIBSODIUM_H */ |