Skip to content
  • Mark Abraham's avatar
    07f2062c
    Improve string literal concatenation for C++11 · 07f2062c
    Mark Abraham authored
    Downstream C++ projects that compile with C++11 or newer and include
    the generated config.h file issue compiler warnings. Both C and C++
    compilers do string-literal token pasting regardless of whitespace
    between the tokens to paste. C++ compilers since C++11 require such
    spaces, to avoid ambiguity with the new style of string literals
    introduced then. This change fixes such projects without affecting
    core Ruby.
    07f2062c
    Improve string literal concatenation for C++11
    Mark Abraham authored
    Downstream C++ projects that compile with C++11 or newer and include
    the generated config.h file issue compiler warnings. Both C and C++
    compilers do string-literal token pasting regardless of whitespace
    between the tokens to paste. C++ compilers since C++11 require such
    spaces, to avoid ambiguity with the new style of string literals
    introduced then. This change fixes such projects without affecting
    core Ruby.
Loading