aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorReuben Thomas <rrt@sc3d.org>2009-03-05 21:44:48 +0000
committerReuben Thomas <rrt@sc3d.org>2009-03-05 21:44:48 +0000
commit2296dccd2f3e1ca88cc670f10b25b8d4cc758259 (patch)
treef091d4eb4f06c141222baa2d09e09db286897fd8 /lib
parent1bf17740c26b82292fd71abf9083b3984cb701c3 (diff)
downloadplptools-2296dccd2f3e1ca88cc670f10b25b8d4cc758259.tar.gz
plptools-2296dccd2f3e1ca88cc670f10b25b8d4cc758259.tar.bz2
plptools-2296dccd2f3e1ca88cc670f10b25b8d4cc758259.zip
Add include of cstdio from Martin Michlmayr to fix compilation with GCC 4.4.
Diffstat (limited to 'lib')
-rw-r--r--lib/log.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/log.h b/lib/log.h
index 01ffe83..286113b 100644
--- a/lib/log.h
+++ b/lib/log.h
@@ -24,6 +24,7 @@
#ifndef _LOG_H_
#define _LOG_H_
+#include <cstdio>
#include <iostream>
#include <syslog.h>
@@ -59,7 +60,7 @@ public:
* Constructs a new instance.
*
* @param loglevel The log level for this instance.
- * see syslog(3) for symbolic names to use.
+ * see syslog(3) for symbolic names to use.
* @param fd An optional file descriptor to use
* if switched off.
*/
@@ -74,7 +75,7 @@ public:
/**
* Modifies the loglevel of this instance.
- *
+ *
* @param newlevel The new loglevel.
*/
void setLevel(int newlevel) { _level = newlevel; }
@@ -88,7 +89,7 @@ public:
/**
* Retrieves the current loglevel.
- *
+ *
* @returns The current loglevel.
*/
int level() { return _level; }