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-06-15 12:34:10 +02:00
2018-07-03 11:06:48 -04:00
2018-07-23 11:17:47 +00:00
2018-08-13 15:35:52 +01:00
2018-07-09 10:38:04 +01:00
2018-06-19 11:19:43 +00:00
2018-08-27 17:08:47 +02:00
2018-05-10 11:46:17 +01:00
2018-08-18 20:16:03 -04:00
2018-06-27 15:01:08 +01:00
2018-05-25 03:06:07 +00:00
2018-06-08 14:05:40 +01:00
2018-04-25 17:23:50 +02:00
2018-06-13 11:01:56 +01:00
2018-04-25 17:23:50 +02:00
2018-07-09 13:28:02 +02:00
2018-07-10 19:16:35 +02:00
2018-06-05 14:01:47 +00:00
2018-08-07 11:04:00 +01:00
2018-04-27 16:46:19 +01:00
2018-06-27 15:01:09 +01:00
2018-06-21 11:44:59 -05:00
2018-05-28 16:58:13 +00:00
2018-05-28 17:13:30 +02:00
2018-06-14 11:28:17 +07:00
2018-06-19 12:36:37 +01:00
2018-04-27 16:46:19 +01:00
2018-05-15 15:54:18 +02:00
2018-06-07 06:38:23 +01:00
2018-05-29 17:16:38 +02:00
2018-07-07 19:44:19 +03:00
2018-06-21 11:44:28 -05:00
2018-06-07 10:38:20 -04:00
2018-05-28 13:50:55 +02:00
2018-05-28 13:50:55 +02:00
2018-05-28 13:50:55 +02:00
2018-05-28 13:50:55 +02:00
2018-05-28 13:50:55 +02:00
2018-05-28 13:50:55 +02:00
2018-08-02 11:35:48 +02:00
2018-07-17 12:13:21 +02:00
2018-05-28 13:50:55 +02:00
2018-05-28 13:50:55 +02:00
2018-05-28 13:50:55 +02:00
2018-05-28 13:50:55 +02:00
2018-05-28 13:50:55 +02:00
2018-05-28 13:50:55 +02:00
2018-08-07 08:20:03 -05:00
2018-07-20 18:53:09 -04:00
2018-08-31 12:29:39 +01:00
2018-08-13 15:37:05 +01:00
2018-04-30 13:02:41 +02:00
2018-08-17 12:41:20 +01:00
2018-08-13 17:23:21 +01:00
2018-06-07 06:38:23 +01:00
2018-08-31 10:51:25 +00:00
2018-04-25 17:23:50 +02:00
2018-04-27 16:46:19 +01:00
2018-05-24 23:29:17 +01:00
2018-06-21 15:32:04 +02:00
2018-06-21 15:32:04 +02:00
2018-08-27 10:56:02 -04:00
2018-05-25 03:06:07 +00:00
2018-05-25 03:06:07 +00:00
2018-05-25 03:06:07 +00:00
2018-04-25 17:23:50 +02:00
2018-08-01 19:08:39 +02:00
2018-08-13 15:38:34 +01:00
2018-08-13 08:19:57 +00:00
2018-04-27 16:46:19 +01:00
2018-07-17 12:14:07 +02:00
2018-06-19 19:18:58 +03:00
2018-08-13 15:38:34 +01:00
2018-06-09 10:02:50 +08:00
2018-08-24 06:05:03 +02:00
2018-08-08 00:17:15 -05:00
2018-08-20 11:13:19 +01:00
2018-06-14 00:43:28 +02:00
2018-06-15 13:04:39 +01:00
2018-08-04 16:33:28 -05:00
2018-07-27 10:48:50 -05:00
2018-06-20 12:16:34 +01:00
2018-05-16 11:31:42 +01:00
2018-06-11 15:13:55 +02:00
2018-07-30 16:05:41 +02:00
2018-07-30 16:05:41 +02:00
2018-07-30 16:05:41 +02:00
2018-05-28 16:58:13 +00:00
2018-05-28 17:20:21 +02:00
2018-06-12 12:45:35 +01:00
2018-04-27 16:46:19 +01:00
2018-04-27 16:46:19 +01:00
2018-08-28 11:59:04 +01:00
2018-08-27 13:50:34 +02:00
2018-06-07 13:45:55 +00:00