diff options
| author | jvoisin | 2024-07-09 15:17:19 +0200 |
|---|---|---|
| committer | jvoisin | 2024-07-09 15:45:22 +0200 |
| commit | 8b85382f29288bd4a8400844934241003e24bb4c (patch) | |
| tree | 3941e1a338b39d164463c43091f1c47563baaafa /src/tweetnacl.c | |
| parent | 1f349eaebdad6e84e32fa32c3511e5a6d3c92110 (diff) | |
Fix compilation for PHP84+
PHP changed some includes for PHP8.4. This commit also adds php8.4-rc to the CI
This fixes #497 and #496
Reported-by: rainerjung
Diffstat (limited to '')
| -rw-r--r-- | src/tweetnacl.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/tweetnacl.c b/src/tweetnacl.c index 746cabc..e6d6ed2 100644 --- a/src/tweetnacl.c +++ b/src/tweetnacl.c | |||
| @@ -1,7 +1,6 @@ | |||
| 1 | /* Since TweetNacl doesn't come with a `randombytes` implementation, | 1 | /* Since TweetNacl doesn't come with a `randombytes` implementation, |
| 2 | we're using the one from PHP.*/ | 2 | we're using the one from PHP.*/ |
| 3 | #include "php_snuffleupagus.h" | 3 | #include "php_snuffleupagus.h" |
| 4 | #include "ext/standard/php_random.h" | ||
| 5 | 4 | ||
| 6 | static void randombytes(unsigned char *x, unsigned long long xlen) { | 5 | static void randombytes(unsigned char *x, unsigned long long xlen) { |
| 7 | assert(SIZE_MAX >= ULLONG_MAX); // max(size_t) > max(ull) ? | 6 | assert(SIZE_MAX >= ULLONG_MAX); // max(size_t) > max(ull) ? |
