diff Resources/EmbedResources.py @ 1377:601d34afdab9

patch for recent versions of MinGW
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 29 May 2015 11:50:14 +0200
parents 6e7e5ed91c2d
children 5068de14eef1
line wrap: on
line diff
--- a/Resources/EmbedResources.py	Thu May 28 16:48:36 2015 +0200
+++ b/Resources/EmbedResources.py	Fri May 29 11:50:14 2015 +0200
@@ -229,6 +229,10 @@
         cpp.write("0x%02x" % c)
         pos += 1
 
+    # Zero-size array are disallowed, so we put one single void character in it.
+    if pos == 0:
+        cpp.write('  0')
+
     cpp.write('  };\n')
     cpp.write('    static const size_t resource%dSize = %d;\n' % (item['Index'], pos))