diff options
author | Eric Andersen <andersen@codepoet.org> | 2003-05-26 18:48:56 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2003-05-26 18:48:56 +0000 |
commit | 82ab3d7c3e65998e0b033347072ee32cf5d61b42 (patch) | |
tree | 23318f32d86a7f4c591bd9a8ef895f4e32929243 /include/libbb.h | |
parent | b0cfca75442293b4b670584d83c39f9cea9f5a8b (diff) | |
download | busybox-w32-82ab3d7c3e65998e0b033347072ee32cf5d61b42.tar.gz busybox-w32-82ab3d7c3e65998e0b033347072ee32cf5d61b42.tar.bz2 busybox-w32-82ab3d7c3e65998e0b033347072ee32cf5d61b42.zip |
Make all syscall declarations use the syscall() function
Diffstat (limited to 'include/libbb.h')
-rw-r--r-- | include/libbb.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/libbb.h b/include/libbb.h index a54ab4d5c..2828456bc 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -66,6 +66,19 @@ extern int daemon (int nochdir, int noclose); | |||
66 | char *strtok_r(char *s, const char *delim, char **ptrptr); | 66 | char *strtok_r(char *s, const char *delim, char **ptrptr); |
67 | #endif | 67 | #endif |
68 | 68 | ||
69 | /* Convenience macros to test the version of gcc. */ | ||
70 | #if defined __GNUC__ && defined __GNUC_MINOR__ | ||
71 | # define __GNUC_PREREQ(maj, min) \ | ||
72 | ((__GNUC__ << 16) + __GNUC_MINOR__ >= ((maj) << 16) + (min)) | ||
73 | #else | ||
74 | # define __GNUC_PREREQ(maj, min) 0 | ||
75 | #endif | ||
76 | |||
77 | /* __restrict is known in EGCS 1.2 and above. */ | ||
78 | #if !__GNUC_PREREQ (2,92) | ||
79 | # define __restrict /* Ignore */ | ||
80 | #endif | ||
81 | |||
69 | /* Some useful definitions */ | 82 | /* Some useful definitions */ |
70 | #define FALSE ((int) 0) | 83 | #define FALSE ((int) 0) |
71 | #define TRUE ((int) 1) | 84 | #define TRUE ((int) 1) |