When running the integration tests, I get a compile-time error, stemming from iotc_time_t.
/home/pi/Projects/iotc_port/iot-device-sdk-embedded-c/include/bsp/iotc_bsp_time.h:49:13: error: conflicting types for ‘iotc_bsp_time_getcurrenttime_milliseconds’
iotc_time_t iotc_bsp_time_getcurrenttime_milliseconds();
^~~~~~~~~
In file included from /home/pi/Projects/iotc_port/iot-device-sdk-embedded-c/src/tests/itests/iotc_itest_helpers.h:24,
from /home/pi/Projects/iotc_port/iot-device-sdk-embedded-c/src/tests/itests/iotc_itest_clean_session.h:20,
from /home/pi/Projects/iotc_port/iot-device-sdk-embedded-c/src/tests/itests/iotc_itests.c:18:
/home/pi/Projects/iotc_port/iot-device-sdk-embedded-c/third_party/cmocka/include/cmocka.h:42:6: note: previous declaration of ‘iotc_bsp_time_getcurrenttime_milliseconds’ was here
long iotc_bsp_time_getcurrenttime_milliseconds();
The release notes for v1.0.1 mention changing iotc_time_t to int64_t, but that change doesn't seem to be reflected in the integration tests, which are still hard-coded to longs.
When running the integration tests, I get a compile-time error, stemming from iotc_time_t.
/home/pi/Projects/iotc_port/iot-device-sdk-embedded-c/include/bsp/iotc_bsp_time.h:49:13: error: conflicting types for ‘iotc_bsp_time_getcurrenttime_milliseconds’ iotc_time_t iotc_bsp_time_getcurrenttime_milliseconds(); ^
~~~~~~~~In file included from /home/pi/Projects/iotc_port/iot-device-sdk-embedded-c/src/tests/itests/iotc_itest_helpers.h:24, from /home/pi/Projects/iotc_port/iot-device-sdk-embedded-c/src/tests/itests/iotc_itest_clean_session.h:20, from /home/pi/Projects/iotc_port/iot-device-sdk-embedded-c/src/tests/itests/iotc_itests.c:18: /home/pi/Projects/iotc_port/iot-device-sdk-embedded-c/third_party/cmocka/include/cmocka.h:42:6: note: previous declaration of ‘iotc_bsp_time_getcurrenttime_milliseconds’ was here long iotc_bsp_time_getcurrenttime_milliseconds();The release notes for v1.0.1 mention changing iotc_time_t to int64_t, but that change doesn't seem to be reflected in the integration tests, which are still hard-coded to longs.