Added include guard to default theme's data header.

This commit is contained in:
Relintai 2023-12-16 13:37:32 +01:00
parent eff15d273c
commit fb24aad9be
2 changed files with 8 additions and 0 deletions

View File

@ -15,6 +15,9 @@ f = open("theme_data.h", "wb")
f.write(b"// THIS FILE HAS BEEN AUTOGENERATED, DON'T EDIT!!\n")
f.write(b"#ifndef THEME_DATA_GENERATED_H\n")
f.write(b"#define THEME_DATA_GENERATED_H\n")
# Generate png image block
f.write(b"\n// png image block\n")
@ -70,4 +73,6 @@ for x in shaders:
f.write(b'";\n')
sf.close()
f.write(b"#endif\n")
f.close()

View File

@ -1,4 +1,6 @@
// THIS FILE HAS BEEN AUTOGENERATED, DON'T EDIT!!
#ifndef THEME_DATA_GENERATED_H
#define THEME_DATA_GENERATED_H
// png image block
@ -443,3 +445,4 @@ static const unsigned char window_resizer_png[] = {
};
// shaders block
#endif