[pan2] 573722: fix compilation with GCC 4.4



commit 41fa7e1e01752e6e8b6caa369b42b24951d86a5a
Author: Charles Kerr <charles rebelbase com>
Date:   Sun Sep 27 23:11:51 2009 -0500

    573722: fix compilation with GCC 4.4

 pan/general/log.cc          |    1 +
 pan/general/progress.cc     |    1 +
 pan/tasks/nntp-pool.cc      |    1 +
 pan/tasks/nntp.cc           |    1 +
 pan/usenet-utils/numbers.cc |    3 ++-
 5 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/pan/general/log.cc b/pan/general/log.cc
index b06fcc3..36079d1 100644
--- a/pan/general/log.cc
+++ b/pan/general/log.cc
@@ -20,6 +20,7 @@
 #include <config.h>
 #include <iostream>
 #include <cstdarg>
+#include <cstdio> // vsnprintf
 #include "log.h"
 
 using namespace pan;
diff --git a/pan/general/progress.cc b/pan/general/progress.cc
index 1f7b3b9..a01a9e5 100644
--- a/pan/general/progress.cc
+++ b/pan/general/progress.cc
@@ -19,6 +19,7 @@
 
 #include <config.h>
 #include <cstdarg>
+#include <cstdio> // vsnprintf
 #include "progress.h"
 #include "string-view.h"
 
diff --git a/pan/tasks/nntp-pool.cc b/pan/tasks/nntp-pool.cc
index d1aa6dc..2c9f061 100644
--- a/pan/tasks/nntp-pool.cc
+++ b/pan/tasks/nntp-pool.cc
@@ -19,6 +19,7 @@
 
 #include <config.h>
 #include <ctime>
+#include <cstdio> // snprintf
 #include <glib/gi18n.h>
 #include <pan/general/debug.h>
 #include <pan/general/log.h>
diff --git a/pan/tasks/nntp.cc b/pan/tasks/nntp.cc
index f8f82af..7b42a58 100644
--- a/pan/tasks/nntp.cc
+++ b/pan/tasks/nntp.cc
@@ -21,6 +21,7 @@
 #include <cassert>
 #include <cstdarg>
 #include <cstdlib> // abort, atoi, strtoul
+#include <cstdio> // snprintf
 extern "C" {
   #include <glib.h>
   #include <glib/gi18n.h>
diff --git a/pan/usenet-utils/numbers.cc b/pan/usenet-utils/numbers.cc
index df208e1..35d6b71 100644
--- a/pan/usenet-utils/numbers.cc
+++ b/pan/usenet-utils/numbers.cc
@@ -19,9 +19,10 @@
 
 #include <config.h>
 #include <cctype>
+#include <cstdio> // snprintf
+#include <algorithm>
 #include <pan/general/string-view.h>
 #include "numbers.h"
-#include <algorithm>
 
 using namespace pan;
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]