mirror of
https://github.com/rkd77/elinks.git
synced 2025-04-18 00:47:36 -04:00
[c++] Let be compatible with -std=c++98
It is for lite version. js code requires -std=gnu++17
This commit is contained in:
parent
cb5916214d
commit
c0f5a89c48
@ -846,7 +846,7 @@ else
|
|||||||
CONFIG_SCRIPTING_SPIDERMONKEY=no
|
CONFIG_SCRIPTING_SPIDERMONKEY=no
|
||||||
fi
|
fi
|
||||||
|
|
||||||
CXXFLAGS="$CXXFLAGS -fpermissive -Wno-sign-compare -std=gnu++17"
|
CXXFLAGS="$CXXFLAGS -fpermissive -Wno-sign-compare"
|
||||||
|
|
||||||
if test "x$CONFIG_ECMASCRIPT_SMJS" = xyes ||
|
if test "x$CONFIG_ECMASCRIPT_SMJS" = xyes ||
|
||||||
test "x$CONFIG_SCRIPTING_SPIDERMONKEY" = xyes; then
|
test "x$CONFIG_SCRIPTING_SPIDERMONKEY" = xyes; then
|
||||||
|
@ -187,10 +187,10 @@ struct string {
|
|||||||
* @relates string */
|
* @relates string */
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
#ifdef DEBUG_MEMLEAK
|
#ifdef DEBUG_MEMLEAK
|
||||||
[[nodiscard]] struct string *init_string__(const char *file, int line, struct string *string);
|
struct string *init_string__(const char *file, int line, struct string *string);
|
||||||
#define init_string(string) init_string__(__FILE__, __LINE__, string)
|
#define init_string(string) init_string__(__FILE__, __LINE__, string)
|
||||||
#else
|
#else
|
||||||
[[nodiscard]] struct string *init_string(struct string *string);
|
struct string *init_string(struct string *string);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user