Date: Thursday, April 20, 2006 @ 12:26:00
  Author: csaba
    Path: /cvsroot/carob/carob

Modified: include/BigDecimal.hpp (1.21 -> 1.22) src/Common.cpp (1.38 ->
          1.39)

Fix compilation on Debian stable.


------------------------+
 include/BigDecimal.hpp |   11 +++++++++++
 src/Common.cpp         |   11 +++++++++++
 2 files changed, 22 insertions(+)


Index: carob/include/BigDecimal.hpp
diff -u carob/include/BigDecimal.hpp:1.21 carob/include/BigDecimal.hpp:1.22
--- carob/include/BigDecimal.hpp:1.21   Thu Mar 23 17:10:04 2006
+++ carob/include/BigDecimal.hpp        Thu Apr 20 12:26:00 2006
@@ -25,6 +25,17 @@
 #include "CarobException.hpp"
 #include "Common.hpp" //for java_byte, ResultSetDataType and 
controllerDecimalPoint
 
+#include <stdint.h> // for uint8_t, int32_t, uint32_t, int64_t, uint64_t
+// Alternative:
+// #include <cstdint>
+
+// Warning: this header and all the types it defines (including "long
+// long") are part of C99 and are MISSING from C++98.
+
+// See:
+// - "Incompatibilities Between ISO C and ISO C++" - David R. Tribble
+// - C++ Technical Report 1 (TR1)
+
 #include <gmpxx.h>
 #include <string>
 #include <sstream>
Index: carob/src/Common.cpp
diff -u carob/src/Common.cpp:1.38 carob/src/Common.cpp:1.39
--- carob/src/Common.cpp:1.38   Thu Mar 23 15:32:58 2006
+++ carob/src/Common.cpp        Thu Apr 20 12:26:00 2006
@@ -29,6 +29,17 @@
 #include <log4cxx/logger.h>
 #endif
 
+#include <stdint.h> // for uint8_t, int32_t, uint32_t, int64_t, uint64_t
+// Alternative:
+// #include <cstdint>
+
+// Warning: this header and all the types it defines (including "long
+// long") are part of C99 and are MISSING from C++98.
+
+// See:
+// - "Incompatibilities Between ISO C and ISO C++" - David R. Tribble
+// - C++ Technical Report 1 (TR1)
+
 #include <iostream>
 #include <sstream> //for wostringstream
 #include <stdexcept>

_______________________________________________
Carob-commits mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob-commits

Reply via email to