summaryrefslogtreecommitdiff
path: root/ext/standard
diff options
context:
space:
mode:
authorRasmus Lerdorf <rasmus@php.net>1999-12-05 13:41:42 (GMT)
committerRasmus Lerdorf <rasmus@php.net>1999-12-05 13:41:42 (GMT)
commitca362445c486e878d3ae287683d14fd54c13ebd6 (patch)
treea4bd1d9ff533afeb9d547e9aa0cd4f2fd8c4ccdf /ext/standard
parentae1b7bf4b8f211726d21bbf489bee78c8a3c4e2e (diff)
downloadphp-ca362445c486e878d3ae287683d14fd54c13ebd6.tar.gz
Fix a maintainer-mode warning
Diffstat (limited to 'ext/standard')
-rw-r--r--ext/standard/lcg.c8
-rw-r--r--ext/standard/php_lcg.h2
2 files changed, 6 insertions, 4 deletions
diff --git a/ext/standard/lcg.c b/ext/standard/lcg.c
index 6e87f24..6e7ecd8 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;
}
diff --git a/ext/standard/php_lcg.h b/ext/standard/php_lcg.h
index 3476460..cf397f7 100644
--- a/ext/standard/php_lcg.h
+++ b/ext/standard/php_lcg.h
@@ -32,7 +32,7 @@ PHP_FUNCTION(lcg_value);
#define LCG(v) (lcg_globals->v)
#define LCGLS_FETCH() php_lcg_globals *lcg_globals = ts_resource(lcg_globals_id)
#else
-#define LCGLS_D
+#define LCGLS_D void
#define LCG(v) (lcg_globals.v)
#define LCGLS_FETCH()
#endif