diff options
Diffstat (limited to 'tools/grit/grit/format/resource_map.py')
-rw-r--r-- | tools/grit/grit/format/resource_map.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/grit/grit/format/resource_map.py b/tools/grit/grit/format/resource_map.py index 5ae135b..4527af8 100644 --- a/tools/grit/grit/format/resource_map.py +++ b/tools/grit/grit/format/resource_map.py @@ -49,10 +49,14 @@ class HeaderTopLevel(interface.ItemFormatter): #include <stddef.h> +#ifndef GRIT_RESOURCE_MAP_STRUCT_ +#define GRIT_RESOURCE_MAP_STRUCT_ struct GritResourceMap { const char* const name; int value; }; +#endif // GRIT_RESOURCE_MAP_STRUCT_ + extern const GritResourceMap %(map_name)s[]; extern const size_t %(map_name)sSize; ''' % { 'year': util.GetCurrentYear(), |