diff --git a/ext/random/engine_combinedlcg.c b/ext/random/engine_combinedlcg.c index 32f9af7d072..a68f0e3d0cb 100644 --- a/ext/random/engine_combinedlcg.c +++ b/ext/random/engine_combinedlcg.c @@ -101,7 +101,7 @@ static bool unserialize(void *state, HashTable *data) return true; } -const php_random_algo php_random_algo_combinedlcg = { +PHPAPI const php_random_algo php_random_algo_combinedlcg = { sizeof(php_random_status_state_combinedlcg), generate, range, diff --git a/ext/random/engine_mt19937.c b/ext/random/engine_mt19937.c index 077d3681b0a..d44fd7c93b7 100644 --- a/ext/random/engine_mt19937.c +++ b/ext/random/engine_mt19937.c @@ -228,7 +228,7 @@ static bool unserialize(void *state, HashTable *data) return true; } -const php_random_algo php_random_algo_mt19937 = { +PHPAPI const php_random_algo php_random_algo_mt19937 = { sizeof(php_random_status_state_mt19937), generate, range, diff --git a/ext/random/engine_pcgoneseq128xslrr64.c b/ext/random/engine_pcgoneseq128xslrr64.c index 4d288f5793e..9ff4f911920 100644 --- a/ext/random/engine_pcgoneseq128xslrr64.c +++ b/ext/random/engine_pcgoneseq128xslrr64.c @@ -105,7 +105,7 @@ static bool unserialize(void *state, HashTable *data) return true; } -const php_random_algo php_random_algo_pcgoneseq128xslrr64 = { +PHPAPI const php_random_algo php_random_algo_pcgoneseq128xslrr64 = { sizeof(php_random_status_state_pcgoneseq128xslrr64), generate, range, diff --git a/ext/random/engine_secure.c b/ext/random/engine_secure.c index e55b9846939..0a03a03bdf1 100644 --- a/ext/random/engine_secure.c +++ b/ext/random/engine_secure.c @@ -46,7 +46,7 @@ static zend_long range(void *state, zend_long min, zend_long max) return result; } -const php_random_algo php_random_algo_secure = { +PHPAPI const php_random_algo php_random_algo_secure = { 0, generate, range, diff --git a/ext/random/engine_user.c b/ext/random/engine_user.c index d8c6909d1db..e343bc91d48 100644 --- a/ext/random/engine_user.c +++ b/ext/random/engine_user.c @@ -73,7 +73,7 @@ static zend_long range(void *state, zend_long min, zend_long max) }, min, max); } -const php_random_algo php_random_algo_user = { +PHPAPI const php_random_algo php_random_algo_user = { sizeof(php_random_status_state_user), generate, range, diff --git a/ext/random/engine_xoshiro256starstar.c b/ext/random/engine_xoshiro256starstar.c index fba834ebcd5..1a054362f06 100644 --- a/ext/random/engine_xoshiro256starstar.c +++ b/ext/random/engine_xoshiro256starstar.c @@ -154,7 +154,7 @@ static bool unserialize(void *state, HashTable *data) return true; } -const php_random_algo php_random_algo_xoshiro256starstar = { +PHPAPI const php_random_algo php_random_algo_xoshiro256starstar = { sizeof(php_random_status_state_xoshiro256starstar), generate, range,