Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compile lm4flash under cygwin #33

Open
tingox opened this issue Jan 26, 2023 · 0 comments
Open

compile lm4flash under cygwin #33

tingox opened this issue Jan 26, 2023 · 0 comments

Comments

@tingox
Copy link

tingox commented Jan 26, 2023

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant