Fix warnings about being declared extern yet initialized on the same line.

This commit is contained in:
Steve Checkoway
2004-07-23 07:49:20 +00:00
parent d4dd1b2a82
commit 35ae6a5a68
+8 -5
View File
@@ -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;