From ca362445c486e878d3ae287683d14fd54c13ebd6 Mon Sep 17 00:00:00 2001
From: Rasmus Lerdorf <rasmus@php.net>
Date: Sun, 5 Dec 1999 13:41:42 +0000
Subject: [PATCH] Fix a maintainer-mode warning

---
 ext/standard/lcg.c     | 8 +++++---
 ext/standard/php_lcg.h | 2 +-
 2 files changed, 6 insertions(+), 4 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;
 }
diff --git a/ext/standard/php_lcg.h b/ext/standard/php_lcg.h
index 3476460dfa..cf397f7771 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
-- 
2.40.0