Added a bunch of missing HAVE_* defines tested with ./configure script to fix compilation on Linux with GCC 4.7.1. The issue likely caused by my previous commits related to Visual C++ port of the code.

This commit is contained in:
Mateusz Loskot authored and Eric Haszlakiewicz committed 2012-12-09 15:53:21 -06:00
1 parent 4392b22e80
commit 5c2a69a8b8
3 files changed
+11 -2

No files matched your search

+1 -1
View File
@@ -124,7 +124,7 @@ static void test_sprintbuf(int before_resize)
memset(data, 'X', before_resize + 1 + 1);
data[before_resize + 1] = '\0';
sprintbuf(pb, "%s", data);
printf("sprintbuf to just after resize(%d+1): %d, [%s], strlen(buf)=%d\n", before_resize, printbuf_length(pb), pb->buf, strlen(pb->buf));
printf("sprintbuf to just after resize(%d+1): %d, [%s], strlen(buf)=%d\n", before_resize, printbuf_length(pb), pb->buf, (int)strlen(pb->buf));
printbuf_reset(pb);
sprintbuf(pb, "plain");