Commit-ID: 0c11e123b261686f12daf1cea5e7f36d41f4f3de
Gitweb: http://repo.or.cz/w/nasm.git?a=commitdiff;h=0c11e123b261686f12daf1cea5e7f36d41f4f3de
Author: H. Peter Anvin <hp...@zy...>
AuthorDate: Mon, 8 Feb 2016 10:12:37 -0800
Committer: H. Peter Anvin <hp...@zy...>
CommitDate: Mon, 8 Feb 2016 10:12:37 -0800
nasmlib.h: Add #undef for ZERO_BUF_SIZE
If we are redefining ZERO_BUF_SIZE, add an #undef to avoid nuisance
compiler warnings.
Signed-off-by: H. Peter Anvin <hp...@zy...>
---
nasmlib.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/nasmlib.h b/nasmlib.h
index dfce1dd..24db573 100644
--- a/nasmlib.h
+++ b/nasmlib.h
@@ -410,6 +410,7 @@ const char *prefix_name(int);
#define ZERO_BUF_SIZE 4096 /* Default value */
#if defined(BUFSIZ) && (BUFSIZ > ZERO_BUF_SIZE)
+# undef ZERO_BUF_SIZE
# define ZERO_BUF_SIZE BUFSIZ
#endif
extern const uint8_t zero_buffer[ZERO_BUF_SIZE];
|