1
0
Fork 0

[c++] Let be compatible with -std=c++98

It is for lite version. js code requires -std=gnu++17
This commit is contained in:
Witold Filipczyk 2023-02-12 13:02:35 +01:00
parent cb5916214d
commit c0f5a89c48
2 changed files with 3 additions and 3 deletions

View File

@ -846,7 +846,7 @@ else
CONFIG_SCRIPTING_SPIDERMONKEY=no
fi
CXXFLAGS="$CXXFLAGS -fpermissive -Wno-sign-compare -std=gnu++17"
CXXFLAGS="$CXXFLAGS -fpermissive -Wno-sign-compare"
if test "x$CONFIG_ECMASCRIPT_SMJS" = xyes ||
test "x$CONFIG_SCRIPTING_SPIDERMONKEY" = xyes; then

View File

@ -187,10 +187,10 @@ struct string {
* @relates string */
#ifdef __cplusplus
#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)
#else
[[nodiscard]] struct string *init_string(struct string *string);
struct string *init_string(struct string *string);
#endif
#else