Philip Withnall b1cae79f78 glib-compile-resources: Fix generated code compiling with C++ compilers
With 0d685b494637775edcb6941706fb047217c48b3f, we now encode resource
data as a string. Strings have trailing nul terminators. A C compiler
will happily ignore the fact that the nul terminator exceeds the stated
array length, and will drop it — but a C++ compiler won’t, and will
raise:

error: initializer-string for array of chars is too long [-fpermissive]

Fix that by increasing the array length by 1, and subtracting it again
in the GStaticResource struct.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
2018-08-31 12:29:39 +01:00
..
2018-05-28 13:50:55 +02:00
2018-07-20 18:53:09 -04:00
2018-08-28 11:59:04 +01:00