sc0ttj / mongoose

Automatically exported from code.google.com/p/mongoose
MIT License
0 stars 0 forks source link

mingw4.9 printf format for int64 should be also %I64d, not %lld #414

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. compile mongoose with mingwi32, gcc version 4.9
2. try exe file in windows XP
3. simple index.html will not be shown ...

What is the expected output? What do you see instead?
- browser hangs, because header is messed up 

What version of the product are you using? On what operating system?
- mongoose ~december 2014, ArchLinux, cross compiling for windows

Please provide any additional information below.
- mongoose.c lines:
#if (defined(__MINGW32__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ 
>= 4 && __GNUC_MINOR__ < 8))) || defined(_MSC_VER)
#define INT64_FMT   "I64d"
... changin '< 8' to '< 10' ... solved the problem very well in my test.

Original issue reported on code.google.com by omer.mer...@gmail.com on 21 Jan 2015 at 4:19

GoogleCodeExporter commented 8 years ago
Duplicate of https://github.com/cesanta/mongoose/issues/471

Original comment by valenok on 17 Feb 2015 at 9:42