[pcre-dev] CXX11 compatibility issue

Top Page
Delete this message
Author: Arlen Keshabyan
Date:  
To: Pcre-dev
Subject: [pcre-dev] CXX11 compatibility issue
Hello,

The last PCRE library (8.30) has CXX11 compatibility issue while
compiled by the GCC 4.7 compiler. I got the following error message in
sljitLir.c file:

'unable to find string literal operator ‘operator"" SLJIT_PRINT_D'

To solve the problem and keep compatibility with the compilers that do
not support CXX11 yet, I've placed the single space character right
after "#%" string. So, the code should look like "#%" SLJIT_PRINT_D"d"
instead of "#%"SLJIT_PRINT_D"d". This way, it's OK for old compilers
and for CXX11 compliant ones.