[pcre-dev] [Bug 953] Visual C++ warning in pcre_globals.c

Top Page
Delete this message
Author: Bo Rydberg
Date:  
To: pcre-dev
Subject: [pcre-dev] [Bug 953] Visual C++ warning in pcre_globals.c
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=953

Bo Rydberg <bolry@???> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bolry@???





--- Comment #4 from Bo Rydberg <bolry@???> 2010-02-25 11:30:19 ---
I have a similar problem but in my case, using Symbian OS, I get a link error.
The proposed solution is the similar, only the precondition is different.

#ifdef __SYMBIAN32__
static void* LocalPcreMalloc(size_t aSize)
        {
        return malloc(aSize);
        }
static void LocalPcreFree(void* aPtr)
        {
        free(aPtr);
        }
PCRE_EXP_DATA_DEFN void *(*pcre_malloc)(size_t) = LocalPcreMalloc;
PCRE_EXP_DATA_DEFN void  (*pcre_free)(void *) = LocalPcreFree;
PCRE_EXP_DATA_DEFN void *(*pcre_stack_malloc)(size_t) = LocalPcreMalloc;
PCRE_EXP_DATA_DEFN void  (*pcre_stack_free)(void *) = LocalPcreFree;
PCRE_EXP_DATA_DEFN int   (*pcre_callout)(pcre_callout_block *) = NULL;
#else
#ifndef VPCOMPAT
PCRE_EXP_DATA_DEFN void *(*pcre_malloc)(size_t) = malloc;
PCRE_EXP_DATA_DEFN void  (*pcre_free)(void *) = free;
PCRE_EXP_DATA_DEFN void *(*pcre_stack_malloc)(size_t) = malloc;
PCRE_EXP_DATA_DEFN void  (*pcre_stack_free)(void *) = free;
PCRE_EXP_DATA_DEFN int   (*pcre_callout)(pcre_callout_block *) = NULL;
#endif
#endif



--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email