fgets: avoid arithmetic overflow when n==INT_MIN is passed
[musl] / include / wordexp.h
index e7eb325..5460002 100644 (file)
@@ -5,11 +5,7 @@
 extern "C" {
 #endif
 
-#if __STDC_VERSION__ >= 199901L
-#define __restrict restrict
-#elif !defined(__GNUC__)
-#define __restrict
-#endif
+#include <features.h>
 
 #define __NEED_size_t
 
@@ -22,8 +18,7 @@ extern "C" {
 #define WRDE_SHOWERR 16
 #define WRDE_UNDEF   32
 
-typedef struct
-{
+typedef struct {
        size_t we_wordc;
        char **we_wordv;
        size_t we_offs;