lm4tools icon indicating copy to clipboard operation
lm4tools copied to clipboard

compile lm4flash under cygwin

Open tingox opened this issue 2 years ago • 0 comments

If you want to compile lm4flash under cygwin on windows, you need to edit out the '_snprintf' define from lm4flash.c:

$ diff -u lm4flash.c.org lm4flash.c
--- lm4flash.c.org      2023-01-26 10:15:12.975382500 +0100
+++ lm4flash.c  2023-01-26 13:57:36.635529600 +0100
@@ -67,7 +67,7 @@
 #define END "#"

 #ifdef WIN32
-#define snprintf _snprintf
+// #define snprintf _snprintf
 #define SNPRINTF_OFFSET 1
 #else
 #define SNPRINTF_OFFSET 0

tingox avatar Jan 26 '23 14:01 tingox