summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2016-02-08 10:12:37 -0800
committerH. Peter Anvin <hpa@zytor.com>2016-02-08 10:12:37 -0800
commit0c11e123b261686f12daf1cea5e7f36d41f4f3de (patch)
tree4741883c73ed0185f977b0511975e6c77f55b483
parent50fe0b5904bce8b00eeb4f6ec7a9ac080e1a823c (diff)
downloadnasm-0c11e123b261686f12daf1cea5e7f36d41f4f3de.tar.gz
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 <hpa@zytor.com>
-rw-r--r--nasmlib.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/nasmlib.h b/nasmlib.h
index dfce1dd9..24db5732 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];