system-info-generated: Fix inclusion guard to __TIZEN_SYSTEM_SYSTEM_INFO_GENERATED_H__ 84/307484/1
authorYoungjae Cho <y0.cho@samsung.com>
Mon, 11 Mar 2024 02:51:03 +0000 (11:51 +0900)
committerYoungjae Cho <y0.cho@samsung.com>
Mon, 11 Mar 2024 04:47:18 +0000 (13:47 +0900)
Tizen native API recommends using guard phrase for inclusion in the
form of __TIZEN_<MODULE>_<SUBMODULE>_<FILE_BASENAME>_H__.

Change-Id: Iec8eee92762670f0c3b569828cd03935463dea20
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
SystemInfoGenerator/SystemInfoGenerator.py

index 270359597bcc478fbe6947a562b63014a4bf1b76..13865fa94fc9490c33b1a237b0c7bec141a1278e 100644 (file)
@@ -36,10 +36,10 @@ class SystemInfoGenerator:
 
     @redirect_output('header')
     def generate_header(self):
-        bp.print_head(title='system-info-generated', guard='__SYSTEM_INFO_GENERATED_H__')
+        bp.print_head(title='system-info-generated', guard='__TIZEN_SYSTEM_SYSTEM_INFO_GENERATED_H__')
         bp.print_include(['system_info.h'])
         for enum in self._enums:
             enum.print_enum_declaration()
         for feature in self._features:
             feature.print_function(body=False)
-        bp.print_tail(guard='__SYSTEM_INFO_GENERATED_H__')
+        bp.print_tail(guard='__TIZEN_SYSTEM_SYSTEM_INFO_GENERATED_H__')