summaryrefslogtreecommitdiff
path: root/include/libbb.h
diff options
context:
space:
mode:
authorEric Andersen2003-05-26 18:48:56 +0000
committerEric Andersen2003-05-26 18:48:56 +0000
commit82ab3d7c3e65998e0b033347072ee32cf5d61b42 (patch)
tree23318f32d86a7f4c591bd9a8ef895f4e32929243 /include/libbb.h
parentb0cfca75442293b4b670584d83c39f9cea9f5a8b (diff)
downloadbusybox-82ab3d7c3e65998e0b033347072ee32cf5d61b42.zip
busybox-82ab3d7c3e65998e0b033347072ee32cf5d61b42.tar.gz
Make all syscall declarations use the syscall() function
Diffstat (limited to 'include/libbb.h')
-rw-r--r--include/libbb.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/libbb.h b/include/libbb.h
index a54ab4d..2828456 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -66,6 +66,19 @@ extern int daemon (int nochdir, int noclose);
char *strtok_r(char *s, const char *delim, char **ptrptr);
#endif
+/* Convenience macros to test the version of gcc. */
+#if defined __GNUC__ && defined __GNUC_MINOR__
+# define __GNUC_PREREQ(maj, min) \
+ ((__GNUC__ << 16) + __GNUC_MINOR__ >= ((maj) << 16) + (min))
+#else
+# define __GNUC_PREREQ(maj, min) 0
+#endif
+
+/* __restrict is known in EGCS 1.2 and above. */
+#if !__GNUC_PREREQ (2,92)
+# define __restrict /* Ignore */
+#endif
+
/* Some useful definitions */
#define FALSE ((int) 0)
#define TRUE ((int) 1)