summaryrefslogtreecommitdiff
path: root/generic
diff options
context:
space:
mode:
authorPixel <Pixel>2002-07-22 22:12:46 +0000
committerPixel <Pixel>2002-07-22 22:12:46 +0000
commit8cc5bf50f11bca8ee945e6716c68d609fdaa9e8f (patch)
tree3017fa30dbb2db40d2c2077f21413aed3f16162b /generic
parent8f8105e69223b8380054275b0a04963eba79759e (diff)
bleehCVS: ----------------------------------------------------------------------
Diffstat (limited to 'generic')
-rwxr-xr-xgeneric/Makefile2
-rw-r--r--generic/String.cpp4
2 files changed, 5 insertions, 1 deletions
diff --git a/generic/Makefile b/generic/Makefile
index dc47586..98317b8 100755
--- a/generic/Makefile
+++ b/generic/Makefile
@@ -3,7 +3,7 @@
CPPFLAGS=-Wall -g -O3 -mcpu=i686 -pedantic -pedantic-errors -I../includes
CXX=g++
-OBJECTS = Buffer.o Exceptions.o Handle.o Image.o Input.o Output.o String.o generic.o fileutils.o
+OBJECTS = Buffer.o Exceptions.o Handle.o Image.o Input.o Output.o generic.o fileutils.o String.o
TARGET = generic.a
all: ${TARGET}
diff --git a/generic/String.cpp b/generic/String.cpp
index 786c623..49b4e4d 100644
--- a/generic/String.cpp
+++ b/generic/String.cpp
@@ -3,7 +3,9 @@
#include <stdarg.h>
#include "String.h"
#include "Exceptions.h"
+#ifdef HAVE_CONFIG_H
#include "config.h"
+#endif
extern "C" {
double dateCalc(char *, char *);
@@ -43,6 +45,7 @@ String::String(unsigned int i) {
siz = ::strlen(str);
}
+#ifdef USE_LONGLONG
String::String(long long l) {
char t[40];
@@ -58,6 +61,7 @@ String::String(unsigned long long l) {
str = Base::strdup(t);
siz = ::strlen(str);
}
+#endif
String::String(double d) {
char t[30];