Skip to content

Commit dfac71d

Browse files
Frank Deniskrakjoe
Frank Denis
authored andcommitted
Revert "fix macro redifinitions"
This reverts commit cbbf579.
1 parent 2b7d3fb commit dfac71d

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

ext/sodium/libsodium.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,10 @@
2323
#include "php.h"
2424
#include "php_ini.h"
2525
#include "ext/standard/info.h"
26+
#include "php_libsodium.h"
2627
#include "zend_exceptions.h"
2728

2829
#include <sodium.h>
29-
#include "php_libsodium.h"
30-
3130
#include <stdint.h>
3231

3332
#define PHP_SODIUM_ZSTR_TRUNCATE(zs, len) do { ZSTR_LEN(zs) = (len); } while(0)

ext/sodium/php_libsodium.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -96,15 +96,9 @@ PHP_FUNCTION(sodium_add);
9696
PHP_FUNCTION(sodium_memcmp);
9797
PHP_FUNCTION(sodium_memzero);
9898

99-
#ifndef crypto_kx_BYTES
10099
#define crypto_kx_BYTES crypto_scalarmult_BYTES
101-
#endif
102-
#ifndef crypto_kx_PUBLICKEYBYTES
103100
#define crypto_kx_PUBLICKEYBYTES crypto_scalarmult_SCALARBYTES
104-
#endif
105-
#ifndef crypto_kx_SECRETKEYBYTES
106101
#define crypto_kx_SECRETKEYBYTES crypto_scalarmult_SCALARBYTES
107-
#endif
108102

109103
#endif /* PHP_LIBSODIUM_H */
110104

0 commit comments

Comments
 (0)