summaryrefslogtreecommitdiffstats
path: root/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'common.h')
-rw-r--r--common.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/common.h b/common.h
index de8b409fd..3afb63355 100644
--- a/common.h
+++ b/common.h
@@ -21,7 +21,11 @@
#include <stdio.h>
#include <stdarg.h>
-#define LOGE(...) ui_print("E:" __VA_ARGS__)
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define LOGE(...) fprintf(stdout, "E:" __VA_ARGS__)
#define LOGW(...) fprintf(stdout, "W:" __VA_ARGS__)
#define LOGI(...) fprintf(stdout, "I:" __VA_ARGS__)
@@ -37,7 +41,7 @@
#define EXPAND(x) STRINGIFY(x)
extern bool modified_flash;
-typedef struct fstab_rec Volume;
+//typedef struct fstab_rec Volume;
// fopen a file, mounting volumes and making parent dirs as necessary.
FILE* fopen_path(const char *path, const char *mode);
@@ -46,4 +50,8 @@ void ui_print(const char* format, ...);
bool is_ro_debuggable();
+#ifdef __cplusplus
+}
+#endif
+
#endif // RECOVERY_COMMON_H