Tool/software: Code Composer Studio
Hi Sir,
We are developping product with CC2652 under SDK "simplelink_cc13x2_26x2_sdk_4_10_00_78" . The IDE is CCS V10. We need time translate funtions like mktime to get number of seconds since an "epoch".
However, according to https://processors.wiki.ti.com/index.php/Time_and_clock_RTS_Functions ,TI version of time function uses a different epoch: midnight UTC-6 Jan 1, 1900. What we want is Jan 1, 1970 UTC-0000 baed one. So according to the guide, I just define the "__TI_TIME_USES_64=1" macro to support the _time64_t epoch .
When do the whole project rebuild, it reports error
"package/cfg/simple_peripheral_app_pem4f.c", line 2494: error #249: function "time" has already been defined
#if defined(__clang__) && defined(__TI_TIME_USES_64) && __TI_TIME_USES_64
that means __clang__ should also be defined? Can we just define it ? It's OK for CCS build env?