File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616#include " test_config.h"
1717#include " ace/ACE.h"
1818#include " ace/Time_Value.h"
19-
2019#include " ace/Numeric_Limits.h"
2120
2221#ifdef ACE_HAS_CPP98_IOSTREAMS
2322#include < sstream>
2423#endif
2524
25+ #include < type_traits>
26+
2627int
2728run_main (int , ACE_TCHAR *[])
2829{
@@ -214,9 +215,17 @@ run_main (int, ACE_TCHAR *[])
214215
215216 if (sizeof (time_t ) < 8 )
216217 {
217- ACE_ERROR ((LM_ERROR,
218- ACE_TEXT (" time_t not at least 64bit, this platform will have problems after 2038\n " )));
219- ++ret;
218+ if (std::is_signed<time_t >::value)
219+ {
220+ ACE_ERROR ((LM_ERROR,
221+ ACE_TEXT (" time_t is 32bit signed, this platform will have problems after 2038\n " )));
222+ ++ret;
223+ }
224+ else
225+ {
226+ ACE_DEBUG ((LM_DEBUG,
227+ ACE_TEXT (" time_t is 32bit unsigned, this platform will have problems after 2106\n " )));
228+ }
220229 }
221230 else
222231 {
You can’t perform that action at this time.
0 commit comments