From 5cba9ce2060ab280036595e7fb89c413fba458ad Mon Sep 17 00:00:00 2001
From: Botond Baranyi <botond.baranyi@ericsson.com>
Date: Thu, 17 Jan 2019 10:38:45 +0100
Subject: [PATCH] Fixed signbit declaration in C++11 (bug 539612)

Change-Id: I05c4f741b4869f8e080130a0d1edac73adadd035
Signed-off-by: Botond Baranyi <botond.baranyi@ericsson.com>
---
 common/ttcn3float.hh | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/common/ttcn3float.hh b/common/ttcn3float.hh
index dd71ec3fc..74549a494 100644
--- a/common/ttcn3float.hh
+++ b/common/ttcn3float.hh
@@ -23,6 +23,8 @@
    are displayed in exponential notation. */
 #define MAX_DECIMAL_FLOAT		1.0E+10
 
+#if __clpusplus < 201103L // signbit is a function in C++11, not a macro
+
 #ifndef signbit
 // Probably Solaris.
 // Thankfully, IEEE Std 1003.1, 2004 Edition says that signbit is a macro,
@@ -49,6 +51,8 @@ inline int signbitfunc(double d)
 
 #endif // def signbit
 
+#endif // __clpusplus < 201103L
+
 /** A class which behaves almost, but not quite, entirely unlike
  *  a floating-point value.
  *
-- 
GitLab