[BusyBox-cvs] busybox/include libbb.h,1.97,1.98

Erik Andersen andersen at busybox.net
Mon May 26 18:48:58 UTC 2003


Update of /var/cvs/busybox/include
In directory winder:/tmp/cvs-serv13125/include

Modified Files:
	libbb.h 
Log Message:
Make all syscall declarations use the syscall() function


Index: libbb.h
===================================================================
RCS file: /var/cvs/busybox/include/libbb.h,v
retrieving revision 1.97
retrieving revision 1.98
diff -u -d -r1.97 -r1.98
--- libbb.h	26 May 2003 14:05:59 -0000	1.97
+++ libbb.h	26 May 2003 18:48:55 -0000	1.98
@@ -66,6 +66,19 @@
 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)



More information about the busybox-cvs mailing list