diff --git a/apps/misc.c b/apps/misc.c index 401360d914..f3a937f76b 100644 --- a/apps/misc.c +++ b/apps/misc.c @@ -21,11 +21,13 @@ #include #include #include "config.h" +#include "misc.h" #include "lcd.h" #include "file.h" #ifdef __PCTOOL__ #include #include +#include #else #include "sprintf.h" #include "lang.h" @@ -71,7 +73,6 @@ #include "gui/gwps-common.h" #include "bookmark.h" -#include "misc.h" #include "playback.h" #ifdef BOOTFILE @@ -1183,6 +1184,9 @@ char *strip_extension(char* buffer, int buffer_size, const char *filename) * If the file is opened for writing and O_TRUNC is set, write a BOM to * the opened file and leave the file pointer set after the BOM. */ +#define BOM "\xef\xbb\xbf" +#define BOM_SIZE 3 + int open_utf8(const char* pathname, int flags) { int fd; diff --git a/apps/misc.h b/apps/misc.h index b5547ec38f..807f231b52 100644 --- a/apps/misc.h +++ b/apps/misc.h @@ -24,9 +24,6 @@ #include #include -#define BOM "\xef\xbb\xbf" -#define BOM_SIZE 3 - /* Format a large-range value for output, using the appropriate unit so that * the displayed value is in the range 1 <= display < 1000 (1024 for "binary" * units) if possible, and 3 significant digits are shown. If a buffer is