Declare ctime_r on Mac OS
On Mac OS, ctime_r is not declared in time.h if _POSIX_C_SOURCE is defined. We work around this by providing a declaration ourselves.
Showing
Please register or sign in to comment
On Mac OS, ctime_r is not declared in time.h if _POSIX_C_SOURCE is defined. We work around this by providing a declaration ourselves.