Date: Thursday, January 25, 2007 @ 20:43:41
  Author: marc
    Path: /cvsroot/carob/carob/src

Modified: ParameterStatement.cpp (1.33 -> 1.34)

#ifdef __GNUC__ using std::signbit; using std::isinf; using std::isnan;
C99-like features. Needed for MacOSX port CAROB-118.


------------------------+
 ParameterStatement.cpp |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)


Index: carob/src/ParameterStatement.cpp
diff -u carob/src/ParameterStatement.cpp:1.33 
carob/src/ParameterStatement.cpp:1.34
--- carob/src/ParameterStatement.cpp:1.33       Wed Sep 20 17:09:29 2006
+++ carob/src/ParameterStatement.cpp    Thu Jan 25 20:43:41 2007
@@ -34,8 +34,13 @@
   #include <cmath>  // C++
 #endif
 
-#ifndef __MINGW32__
-  using std::signbit; // so to be C/C++ ambiguous?
+// gcc-specific workaroud to get those C99 features.
+// See discussion "Re: C++ header file problem - is this a bug?"  at
+// http://gcc.gnu.org/ml/gcc/2005-01/threads.html#00169
+#ifdef __GNUC__
+using std::signbit;
+using std::isinf;
+using std::isnan;
 #endif
 
 namespace CarobNS {

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

Reply via email to