]> git.ipfire.org Git - thirdparty/pdns.git/commit
Stringify preprocessor string 2315/head
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Thu, 5 Mar 2015 15:49:05 +0000 (16:49 +0100)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Thu, 5 Mar 2015 15:49:05 +0000 (16:49 +0100)
commit4007a326a9709a0f3ca20bf3063911cfafda1514
tree167aba5a2cbe434875c2fbfc263c44d50b4fba03
parentc26a6dae212917417ab6089612c5bab0f037c7e6
Stringify preprocessor string

When compiling with something like './configure
CXXFLAGS=-DPACKAGEVERSION="1.2.3"', we fail with
"../config.h:162:792: error: too many decimal points in number"

This happens because the string as defined in config.h
has embedded double quotes. Escape them.
pdns/version.cc