Made stlprintf actually build
authorfluffymormegil <mpread@chiark.greenend.org.uk>
Sat, 23 Oct 2010 22:59:54 +0000 (23:59 +0100)
committerfluffymormegil <mpread@chiark.greenend.org.uk>
Sat, 23 Oct 2010 22:59:54 +0000 (23:59 +0100)
include/libmormegil/stlprintf.hh
src/stlprintf.cc

index 3378098..c0931b2 100644 (file)
@@ -1,4 +1,4 @@
-/* stlprintf.hh - (v)sprintf-for-STL-strings for Martin's Dungeon Bash
+/* stlprintf.hh - (v)sprintf-for-STL-strings for libmormegil
  * 
  * Copyright 2009 Martin Read and Stefan O'Rear
  *
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifndef STLPRINTF_HH
-#define STLPRINTF_HH
+#ifndef libmormegil_stlprintf_hh
+#define libmormegil_stlprintf_hh
 #include <stdarg.h>
 #include <string>
 
-namespace libmrl
+/* Originally provided for dungeonbash. */
+namespace libmormegil
 {
     extern std::string vstlprintf(const char *fmt, va_list args);
     extern std::string stlprintf(const char *fmt, ...);
index a50fb3a..59dc90c 100644 (file)
@@ -27,6 +27,7 @@
 #define STLPRINTF_CC
 
 #include <stdarg.h>
+#include <stdio.h>
 #include <string>
 #include <libmormegil/stlprintf.hh>