diff options
Diffstat (limited to 'ext/standard/lcg.c')
| -rw-r--r-- | ext/standard/lcg.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/ext/standard/lcg.c b/ext/standard/lcg.c index 6e87f24df8..6e7ecd8ef2 100644 --- a/ext/standard/lcg.c +++ b/ext/standard/lcg.c @@ -59,7 +59,9 @@ double php_combined_lcg(void) return z * 4.656613e-10; } -static void init_globals(LCGLS_D) +static void lcg_init_globals(LCGLS_D); + +static void lcg_init_globals(LCGLS_D) { LCG(s1) = 1; #ifdef ZTS @@ -72,9 +74,9 @@ static void init_globals(LCGLS_D) static int php_minit_lcg(INIT_FUNC_ARGS) { #ifdef ZTS - lcg_globals_id = ts_allocate_id(sizeof(php_lcg_globals), init_globals, NULL); + lcg_globals_id = ts_allocate_id(sizeof(php_lcg_globals), lcg_init_globals, NULL); #else - init_globals(); + lcg_init_globals(); #endif return SUCCESS; } |
