Fix warnings about being declared extern yet initialized on the same line.
This commit is contained in:
@@ -346,11 +346,14 @@ compiling for Virtual Pascal, things are done differently (see pcre.in). */
|
|||||||
|
|
||||||
#ifndef VPCOMPAT
|
#ifndef VPCOMPAT
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" void *(*pcre_malloc)(size_t) = malloc;
|
extern "C"
|
||||||
extern "C" void (*pcre_free)(void *) = free;
|
{
|
||||||
extern "C" void *(*pcre_stack_malloc)(size_t) = malloc;
|
void *(*pcre_malloc)(size_t) = malloc;
|
||||||
extern "C" void (*pcre_stack_free)(void *) = free;
|
void (*pcre_free)(void *) = free;
|
||||||
extern "C" int (*pcre_callout)(pcre_callout_block *) = NULL;
|
void *(*pcre_stack_malloc)(size_t) = malloc;
|
||||||
|
void (*pcre_stack_free)(void *) = free;
|
||||||
|
int (*pcre_callout)(pcre_callout_block *) = NULL;
|
||||||
|
}
|
||||||
#else
|
#else
|
||||||
void *(*pcre_malloc)(size_t) = malloc;
|
void *(*pcre_malloc)(size_t) = malloc;
|
||||||
void (*pcre_free)(void *) = free;
|
void (*pcre_free)(void *) = free;
|
||||||
|
|||||||
Reference in New Issue
Block a user