Mercurial > hg > orthanc-stone
comparison UnitTestsSources/GenericToolboxTests.cpp @ 1866:c26c18e876e3
fix compatibility with C++03 in unit tests
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 10 Dec 2021 11:37:36 +0100 |
parents | 63e893267c98 |
children | 3889ae96d2e9 |
comparison
equal
deleted
inserted
replaced
1865:4d83d27a955e | 1866:c26c18e876e3 |
---|---|
29 #include <cmath> | 29 #include <cmath> |
30 | 30 |
31 #if __cplusplus >= 201103L // Is C++11? | 31 #if __cplusplus >= 201103L // Is C++11? |
32 # include <cinttypes> // For PRId64 | 32 # include <cinttypes> // For PRId64 |
33 #else | 33 #else |
34 # define PRId64 "%lld" | 34 # define PRId64 "ld" |
35 #endif | 35 #endif |
36 | 36 |
37 TEST(GenericToolbox, TestLegitDoubleString) | 37 TEST(GenericToolbox, TestLegitDoubleString) |
38 { | 38 { |
39 using OrthancStone::GenericToolbox::LegitDoubleString; | 39 using OrthancStone::GenericToolbox::LegitDoubleString; |