commit a1fc2cd7227a0d8c8e015b1c6c6d807fc18caf2d
parent 85d4118b07c59ffde360f818295ed8dc55d0224a
Author: andreaha <andreaha@b31fe1f4-c0d1-0310-8000-a34f4ae90293>
Date: Mon, 12 Apr 2004 20:05:40 +0000
- Compile on certain 64bit archtectures.
git-svn-id: file:///home/cwright/convert/bincimap/trunk@65 b31fe1f4-c0d1-0310-8000-a34f4ae90293
Diffstat:
2 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/bincimap.spec.in b/bincimap.spec.in
@@ -187,6 +187,10 @@ install man/bincimap.conf.5 $MAN/man5
#-----------------------------------------------------------------------
%changelog
+
+* Mon Apr 12 2004 Andreas Aardal Hanssen <andreas-binc@bincimap.org>
+- Added Gerrit's patch to compile on certain 64bit architectures.
+
* Sun Apr 03 2004 Andreas Aardal Hanssen <andreas-binc@bincimap.org>
- No longer wastes time in configure step checking for features that
we don't check defines for in the sources.
diff --git a/src/convert.h b/src/convert.h
@@ -67,6 +67,14 @@ namespace Binc {
}
//----------------------------------------------------------------------
+ inline std::string toString(unsigned long i_in)
+ {
+ char longbuf[40];
+ snprintf(longbuf, sizeof(longbuf), "%lu", i_in);
+ return std::string(longbuf);
+ }
+
+ //----------------------------------------------------------------------
inline std::string toString(const char *i_in)
{
return std::string(i_in);