mirror of
https://github.com/cesanta/mongoose.git
synced 2025-01-17 04:51:03 +08:00
Fix c++11 mg compilation
PUBLISHED_FROM=a121a15698884203a573741e73fefaa5923dce4d
This commit is contained in:
parent
835af2cae1
commit
c722cfec18
@ -344,10 +344,11 @@ typedef struct _stati64 cs_stat_t;
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* osx correctly avoids defining strtoll when compiling in strict ansi mode.
|
* osx correctly avoids defining strtoll when compiling in strict ansi mode.
|
||||||
|
* c++ 11 standard defines strtoll as well.
|
||||||
* We require strtoll, and if your embedded pre-c99 compiler lacks one, please
|
* We require strtoll, and if your embedded pre-c99 compiler lacks one, please
|
||||||
* implement a shim.
|
* implement a shim.
|
||||||
*/
|
*/
|
||||||
#if !(defined(__DARWIN_C_LEVEL) && __DARWIN_C_LEVEL >= 200809L)
|
#if !(defined(__cplusplus) && __cplusplus >= 201103L) && !(defined(__DARWIN_C_LEVEL) && __DARWIN_C_LEVEL >= 200809L)
|
||||||
long long strtoll(const char *, char **, int);
|
long long strtoll(const char *, char **, int);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user