Mercurial > hg > orthanc
comparison 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 |
comparison
equal
deleted
inserted
replaced
1376:65a000d823c4 | 1377:601d34afdab9 |
---|---|
227 raise Exception("Internal error") | 227 raise Exception("Internal error") |
228 | 228 |
229 cpp.write("0x%02x" % c) | 229 cpp.write("0x%02x" % c) |
230 pos += 1 | 230 pos += 1 |
231 | 231 |
232 # Zero-size array are disallowed, so we put one single void character in it. | |
233 if pos == 0: | |
234 cpp.write(' 0') | |
235 | |
232 cpp.write(' };\n') | 236 cpp.write(' };\n') |
233 cpp.write(' static const size_t resource%dSize = %d;\n' % (item['Index'], pos)) | 237 cpp.write(' static const size_t resource%dSize = %d;\n' % (item['Index'], pos)) |
234 | 238 |
235 | 239 |
236 cpp = open(TARGET_BASE_FILENAME + '.cpp', 'w') | 240 cpp = open(TARGET_BASE_FILENAME + '.cpp', 'w') |