فهرست منبع

add include guard

CaCO3 3 سال پیش
والد
کامیت
906915e058
1فایلهای تغییر یافته به همراه7 افزوده شده و 1 حذف شده
  1. 7 1
      code/main/version.h

+ 7 - 1
code/main/version.h

@@ -1,3 +1,6 @@
+#ifndef _VERSION_H
+#define _VERSION_H
+
 // These variables are autogenerated and compiled
 // into the library by the version.cmake script
 extern "C"
@@ -13,6 +16,7 @@ extern "C"
 #include "Helper.h"
 #include <fstream>
 
+// todo remove
 const char* GIT_BASE_BRANCH = "master - v11.3.0 - 2022-09-16";
 
 
@@ -57,4 +61,6 @@ const char* getHTMLversion(void){
     fclose(pFile);
 
     return _char_getHTMLversion;
-}
+}
+
+#endif // _VERSION_H