[pcre-dev] [Bug 1038] memcmp not available in pcrecpp_string…

Page principale
Supprimer ce message
Auteur: Craig Silverstein
Date:  
À: pcre-dev
Sujet: [pcre-dev] [Bug 1038] memcmp not available in pcrecpp_stringpiece.h compiling with BCB 6
------- You are receiving this mail because: -------
You are on the CC list for the bug.

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




--- Comment #24 from Craig Silverstein <csilvers@???> 2010-11-24 01:33:02 ---
OK, let's do the following fix then:

In pcre_stringpiece.h, change the line
#include <string.h>
to
#include <cstring>

Right before the line
using std::string;
add these lines:
using std::memcmp;
using std::strlen;

Thorsten, does this fix things for you? If so, let's go for that for
the next release.

Philip, are you still following this thread? Are you ok making these
changes (assuming they solve this problem)? -- or would you prefer to
see a patch?

craig


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