File tree 3 files changed +2
-10
lines changed 3 files changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -271,6 +271,8 @@ if(BUILD_STATIC_QJS_EXE OR MINGW)
271
271
target_link_options (qjs_exe PRIVATE -static )
272
272
if (MINGW)
273
273
target_link_options (qjs_exe PRIVATE -static -libgcc)
274
+ # Fix %zd not working on MinGW
275
+ target_compile_definitions (run-qjs_exe PRIVATE __USE_MINGW_ANSI_STDIO=1)
274
276
endif ()
275
277
endif ()
276
278
if (NOT WIN32 )
Original file line number Diff line number Diff line change @@ -108,15 +108,10 @@ extern "C" {
108
108
#define JS_PRINTF_FORMAT_ATTR (format_param , dots_param )
109
109
#else
110
110
#define JS_PRINTF_FORMAT
111
- #if !defined(__clang__ ) && defined(__GNUC__ )
112
- #define JS_PRINTF_FORMAT_ATTR (format_param , dots_param ) \
113
- __attribute__((format(gnu_printf, format_param, dots_param)))
114
- #else
115
111
#define JS_PRINTF_FORMAT_ATTR (format_param , dots_param ) \
116
112
__attribute__((format(printf, format_param, dots_param)))
117
113
#endif
118
114
#endif
119
- #endif
120
115
121
116
void js__pstrcpy (char * buf , int buf_size , const char * str );
122
117
char * js__pstrcat (char * buf , int buf_size , const char * s );
Original file line number Diff line number Diff line change @@ -53,15 +53,10 @@ extern "C" {
53
53
#define JS_PRINTF_FORMAT_ATTR (format_param , dots_param )
54
54
#else
55
55
#define JS_PRINTF_FORMAT
56
- #if !defined(__clang__ ) && defined(__GNUC__ )
57
- #define JS_PRINTF_FORMAT_ATTR (format_param , dots_param ) \
58
- __attribute__((format(gnu_printf, format_param, dots_param)))
59
- #else
60
56
#define JS_PRINTF_FORMAT_ATTR (format_param , dots_param ) \
61
57
__attribute__((format(printf, format_param, dots_param)))
62
58
#endif
63
59
#endif
64
- #endif
65
60
66
61
typedef struct JSRuntime JSRuntime ;
67
62
typedef struct JSContext JSContext ;
You can’t perform that action at this time.
0 commit comments