aboutsummaryrefslogtreecommitdiffstats
path: root/src/3rdparty/double-conversion/utils.h
diff options
context:
space:
mode:
authorSérgio Martins <sergio.martins@kdab.com>2013-08-29 10:17:12 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-01-24 12:39:07 +0100
commit171c8c31b6be8244994ee6d80a16b2add65a2506 (patch)
tree2a5d3a0d179bd8862f6167948daa64a8fe6b2e83 /src/3rdparty/double-conversion/utils.h
parentcf86344d5ca855caf86716794b95793073334ec9 (diff)
wince: Build fix, assert() is not present in this platform.
Cherry-picking commit e88a447 on top of rebased double-conversion code Change-Id: I62d4b152f8551adc9eebd5e23424b44e0a90a256 Reviewed-by: Sérgio Martins <sergio.martins@kdab.com> Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/3rdparty/double-conversion/utils.h')
-rw-r--r--src/3rdparty/double-conversion/utils.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/3rdparty/double-conversion/utils.h b/src/3rdparty/double-conversion/utils.h
index 5fcb1dd38f..b1bb282788 100644
--- a/src/3rdparty/double-conversion/utils.h
+++ b/src/3rdparty/double-conversion/utils.h
@@ -33,14 +33,18 @@
#include <assert.h>
#ifndef ASSERT
-#define ASSERT(condition) \
+# if defined(WINCE) || defined(_WIN32_WCE)
+# define ASSERT(condition)
+# else
+# define ASSERT(condition) \
assert(condition);
+# endif
#endif
#ifndef UNIMPLEMENTED
-#define UNIMPLEMENTED() (exit(-1))
+# define UNIMPLEMENTED() (exit(-1))
#endif
#ifndef UNREACHABLE
-#define UNREACHABLE() (exit(-1))
+# define UNREACHABLE() (exit(-1))
#endif
// Double operations detection based on target architecture.