From 35ae6a5a685106d9d89bf658e2e645a92bd3064d Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Fri, 23 Jul 2004 07:49:20 +0000 Subject: [PATCH] Fix warnings about being declared extern yet initialized on the same line. --- stepmania/src/pcre/pcre.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/stepmania/src/pcre/pcre.c b/stepmania/src/pcre/pcre.c index 5afca1091a..dda231905b 100644 --- a/stepmania/src/pcre/pcre.c +++ b/stepmania/src/pcre/pcre.c @@ -346,11 +346,14 @@ compiling for Virtual Pascal, things are done differently (see pcre.in). */ #ifndef VPCOMPAT #ifdef __cplusplus -extern "C" void *(*pcre_malloc)(size_t) = malloc; -extern "C" void (*pcre_free)(void *) = free; -extern "C" void *(*pcre_stack_malloc)(size_t) = malloc; -extern "C" void (*pcre_stack_free)(void *) = free; -extern "C" int (*pcre_callout)(pcre_callout_block *) = NULL; +extern "C" +{ + void *(*pcre_malloc)(size_t) = malloc; + void (*pcre_free)(void *) = free; + void *(*pcre_stack_malloc)(size_t) = malloc; + void (*pcre_stack_free)(void *) = free; + int (*pcre_callout)(pcre_callout_block *) = NULL; +} #else void *(*pcre_malloc)(size_t) = malloc; void (*pcre_free)(void *) = free;