Port reboot functions to C++
diff --git a/common.h b/common.h
index 37c0e4c..7bd769a 100644
--- a/common.h
+++ b/common.h
@@ -23,6 +23,8 @@
 extern "C" {
 #endif
 
+static long tmplog_offset = 0;
+
 #define ui_print(...) gui_print(__VA_ARGS__)
 #define ui_print_overwrite(...) gui_print_overwrite(__VA_ARGS__)