diff options
Diffstat (limited to 'common.h')
-rw-r--r-- | common.h | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -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 |