ufairiya / mongoose

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

need to add #define for strtoll for Microsoft VS2008 #93

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I needed to add the folllowing #define at line 89:
#define strtoll(x, y, z)    _strtoi64(x, y, z)

If I did not do this then mongoose.c would compile but give linker errors 
reporting that strtoll was an undefined sysmbol.  There might be an extra 
Microsoft library that resolves this, but it is not in the standard VS2008 
libs.

Original issue reported on code.google.com by dcraw...@gmail.com on 14 Oct 2009 at 4:46

GoogleCodeExporter commented 9 years ago
I uploaded a patch to the group a few months ago to fix this. I used _atoi64 
(because
I hadn't found _strtoi64..). I've updated it to use _strtoi64

Original comment by keyz...@gmail.com on 16 Nov 2009 at 12:28

Attachments:

GoogleCodeExporter commented 9 years ago
meet the same problem. mark.

Original comment by msg7...@gmail.com on 28 Feb 2010 at 2:41

GoogleCodeExporter commented 9 years ago
I think this conditional should be changed instead:
http://code.google.com/p/mongoose/source/browse/mongoose.c?r=2.11#79

Original comment by valenok on 7 Mar 2011 at 2:04

GoogleCodeExporter commented 9 years ago

Original comment by valenok on 23 Sep 2012 at 1:08