Compare commits

..

No commits in common. "425794361bc52240bb50001becbb5fb6e9ebcf20" and "ae0fa95d6aee2a7427c3e3575d74af1ed360e6e5" have entirely different histories.

2 changed files with 4 additions and 4 deletions

View File

@ -7,10 +7,10 @@ C library with collections, strings, exceptions, io...
``` ```
git clone https://timerix.ddns.net/git/Timerix/tlibc.git git clone https://timerix.ddns.net/git/Timerix/tlibc.git
``` ```
2. Install [cbuild](https://timerix.ddns.net/git/Timerix/cbuild). 2. Install [cbuild](https://timerix.ddns.net/git/Timerix/cbuild.git).
3. Build static library 3. Build static library
``` ```
cd tlibc cd tlibtoml
cbuild build_static_lib_dbg cbuild build_static_lib_dbg
``` ```

View File

@ -45,8 +45,8 @@ void sleepMsec(msec_t time){
sleepNsec(time * M); sleepNsec(time * M);
} }
#define portable_localtime_s(time_t_ptr, tm_ptr) IFWIN(localtime_s(tm_ptr, time_t_ptr), localtime_r(time_t_ptr, tm_ptr)) #define portable_localtime_s(time_t_ptr, tm_ptr) IFWIN(localtime_s(tm_ptr, time_t_ptr), localtime_s(time_t_ptr, tm_ptr))
#define portable_gmtime_s(time_t_ptr, tm_ptr) IFWIN(gmtime_s(tm_ptr, time_t_ptr), gmtime_r(time_t_ptr, tm_ptr)) #define portable_gmtime_s(time_t_ptr, tm_ptr) IFWIN(gmtime_s(tm_ptr, time_t_ptr), gmtime_s(time_t_ptr, tm_ptr))
void DateTime_get(DateTime* dt, bool utc_time){ void DateTime_get(DateTime* dt, bool utc_time){
time_t c_time = time(NULL); time_t c_time = time(NULL);