Remember to #undef __errordecl

Thanks zhasha for spotting this.
This commit is contained in:
sin 2015-02-04 18:06:57 +00:00
parent 87f56f70d7
commit 6e4f53a3f5
5 changed files with 10 additions and 0 deletions

View File

@ -58,6 +58,8 @@ __errordecl(__snprintf_error, "snprintf: buffer overflow detected");
snprintf(s, _n, fmt, ## __VA_ARGS__); \
})
#undef __errordecl
#endif
#endif

View File

@ -224,6 +224,8 @@ __fortify_strlcpy(char *dest, const char *src, size_t n)
#define strlcpy(dest, src, n) __fortify_strlcpy(dest, src, n)
#endif
#undef __errordecl
#endif
#endif

View File

@ -47,6 +47,8 @@ __fortify_bzero(void *src, size_t n)
#define bzero(src, n) __fortify_bzero(src, n)
#endif
#undef __errordecl
#endif
#endif

View File

@ -43,6 +43,8 @@ __fortify_recvfrom(int sockfd, void *buf, size_t n, int flags, struct sockaddr *
#undef recvfrom
#define recvfrom(sockfd, buf, n, flags, sa, salen) __fortify_recvfrom(sockfd, buf, n, flags, sa, salen)
#undef __errordecl
#endif
#endif

View File

@ -43,6 +43,8 @@ __fortify_read(int fd, void *buf, size_t n)
#undef read
#define read(fd, buf, n) __fortify_read(fd, buf, n)
#undef __errordecl
#endif
#endif