remove all remaining redundant __restrict/__inline/_Noreturn defs
authorRich Felker <dalias@aerifal.cx>
Sat, 8 Sep 2012 21:14:52 +0000 (17:14 -0400)
committerRich Felker <dalias@aerifal.cx>
Sat, 8 Sep 2012 21:14:52 +0000 (17:14 -0400)
14 files changed:
include/arpa/inet.h
include/byteswap.h
include/iconv.h
include/inttypes.h
include/monetary.h
include/mqueue.h
include/pthread.h
include/regex.h
include/semaphore.h
include/spawn.h
include/sys/select.h
include/sys/socket.h
include/sys/syscall.h
include/wordexp.h

index 82e2ac1bf4afaf149e77924663f0427b12044b76..9293840399b8e84fc8c34db12d120556fd279c25 100644 (file)
@@ -5,12 +5,7 @@
 extern "C" {
 #endif
 
-#if __STDC_VERSION__ >= 199901L
-#define __restrict restrict
-#elif !defined(__GNUC__)
-#define __restrict
-#endif
-
+#include <features.h>
 #include <netinet/in.h>
 #include <inttypes.h>
 
index bf222d3cb249517a31dfedbaa10a3f9266ea35c6..00b9df3c9fa2b1511105ef60efca7650607a9f52 100644 (file)
@@ -1,12 +1,9 @@
 #ifndef _BYTESWAP_H
 #define _BYTESWAP_H
 
+#include <features.h>
 #include <stdint.h>
 
-#if __STDC_VERSION__ >= 199901L || defined(__cplusplus)
-#define __inline inline
-#endif
-
 static __inline uint16_t __bswap_16(uint16_t __x)
 {
        return __x<<8 | __x>>8;
index cef06f604953fede48996271e60f3db89de9f8d7..ebe9bfda3926a6a532b4aefc1db8e06a16ec0cdf 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
 
index 23acc5bec142e2acc041f654e2ec434a144efd31..3f0339ce340e3382d69d5a7f32117d6808e89fa1 100644 (file)
@@ -5,17 +5,12 @@
 extern "C" {
 #endif
 
+#include <features.h>
 #include <stdint.h>
 
 #define __NEED_wchar_t
 #include <bits/alltypes.h>
 
-#if __STDC_VERSION__ >= 199901L
-#define __restrict restrict
-#elif !defined(__GNUC__)
-#define __restrict
-#endif
-
 typedef struct { intmax_t quot, rem; } imaxdiv_t;
 
 intmax_t imaxabs(intmax_t);
index 11dabb2341f4687424ba10ed50eff2eddf078fe8..a91fa565574758726977376659b9890a2380087d 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_ssize_t
 #define __NEED_size_t
index bd35842c42ca7f5b42e11b1625dbb5ea3c33601e..f5cbe79656b3ab2fdcfc18c91229649e77a2c82e 100644 (file)
@@ -4,11 +4,7 @@
 extern "C" {
 #endif
 
-#if __STDC_VERSION__ >= 199901L
-#define __restrict restrict
-#elif !defined(__GNUC__)
-#define __restrict
-#endif
+#include <features.h>
 
 #define __NEED_size_t
 #define __NEED_ssize_t
index bc0d9f1c32bc3ef8a8ca6ea409eb4d5e0462434a..74d86006a442e1f577358ac390e2ed5cdffbf0f0 100644 (file)
@@ -4,18 +4,7 @@
 extern "C" {
 #endif
 
-#if __STDC_VERSION__ >= 199901L
-#define __restrict restrict
-#elif !defined(__GNUC__)
-#define __restrict
-#endif
-
-#if __STDC_VERSION__ >= 201112L
-#elif defined(__GNUC__)
-#define _Noreturn __attribute__((__noreturn__))
-#else
-#define _Noreturn
-#endif
+#include <features.h>
 
 #define __NEED_time_t
 #define __NEED_clockid_t
index b7167b876e1a689bd3faaeb12aedffb534d4d25c..2eac1ebf9bdd6a02c97c5360724561a5695573c2 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
 
index 724957fbe44635b2e080149908fec5035f7c8e5b..20d46f0de2a70c6f4c1c9f10891af2e7b5dec787 100644 (file)
@@ -4,11 +4,7 @@
 extern "C" {
 #endif
 
-#if __STDC_VERSION__ >= 199901L
-#define __restrict restrict
-#elif !defined(__GNUC__)
-#define __restrict
-#endif
+#include <features.h>
 
 #define __NEED_time_t
 #define __NEED_struct_timespec
index c934d4238851da5345d76d912d5900ae345259ec..a28ae69168b4c54d6bc5972988a51347381ca954 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_mode_t
 #define __NEED_pid_t
index dd4176dd2980c4957450feb00c3d7d92761fb2d7..c5a2877f87ac604c0082c4dbb0c4dc4442bd4b3d 100644 (file)
@@ -4,11 +4,7 @@
 extern "C" {
 #endif
 
-#if __STDC_VERSION__ >= 199901L
-#define __restrict restrict
-#elif !defined(__GNUC__)
-#define __restrict
-#endif
+#include <features.h>
 
 #define __NEED_size_t
 #define __NEED_time_t
index 7024d232df0928ec651a1c54f3a002bf32b90c87..97d78871ae1413f730c1f1d449901a2e166850e7 100644 (file)
@@ -4,11 +4,7 @@
 extern "C" {
 #endif
 
-#if __STDC_VERSION__ >= 199901L
-#define __restrict restrict
-#elif !defined(__GNUC__)
-#define __restrict
-#endif
+#include <features.h>
 
 #define __NEED_socklen_t
 #define __NEED_sa_family_t
index 154e5ab5636f3e8060df2b8dda6fbbd69c6b75e1..62564d7d2e10273a5e7e4f484e2b0d741a9ea6c9 100644 (file)
@@ -4,9 +4,7 @@
 extern "C" {
 #endif
 
-#if __STDC_VERSION__ >= 199901L || defined(__cplusplus)
-#define __inline inline
-#endif
+#include <features.h>
 
 long __syscall_ret(unsigned long);
 long __syscall(long, ...);
index e7eb3255ded8ffede3b8a24c153e5c875a9c65be..d12081e80130ca235315fed808fe2d267b7c723c 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