summaryrefslogtreecommitdiff
path: root/firmware/export
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export')
-rw-r--r--firmware/export/load_code.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/firmware/export/load_code.h b/firmware/export/load_code.h
index f4fa8f9b46..e37af786df 100644
--- a/firmware/export/load_code.h
+++ b/firmware/export/load_code.h
@@ -42,7 +42,13 @@ static inline void lc_close(void *handle) { (void)handle; }
42 42
43/* don't call these directly for loading code 43/* don't call these directly for loading code
44 * they're to be wrapped by platform specific functions */ 44 * they're to be wrapped by platform specific functions */
45extern void *_lc_open(const char *filename, char *buf, size_t buf_size); 45#ifdef WIN32
46/* windows' LoadLibrary can only handle ucs2, no utf-8 */
47#define _lc_open_char wchar_t
48#else
49#define _lc_open_char char
50#endif
51extern void *_lc_open(const _lc_open_char *filename, char *buf, size_t buf_size);
46extern void *_lc_get_header(void *handle); 52extern void *_lc_get_header(void *handle);
47extern void _lc_close(void *handle); 53extern void _lc_close(void *handle);
48 54