compat: add an explicit declaration for localtime_r() (#1035)
compat: add an explicit declaration for localtime_r() (#1035)

Without this, MSVC wrongly assumes that the return value of localtime_r()
is an integer while it's actually a pointer (struct tm*).

> warning C4013: 'localtime_r' undefined; assuming extern returning int

This has been causing SIGSEGV in flb_log_print() on Win64, since Windows
improperly truncates the returned pointer in order to fit the pointer
address into 4 bytes.

Signed-off-by: Fujimoto Seiji <ef879192bb1e41d519c82cf76440dc8e9a530806@clear-code.com>
nokute78/fluent-bit,nokute78/fluent-bit,fluent/fluent-bit,nokute78/fluent-bit,nokute78/fluent-bit,fluent/fluent-bit,fluent/fluent-bit,fluent/fluent-bit,nokute78/fluent-bit,fluent/fluent-bit,nokute78/fluent-bit,fluent/fluent-bit,nokute78/fluent-bit,fluent/fluent-bit,fluent/fluent-bit,fluent/fluent-bit,nokute78/fluent-bit,fluent/fluent-bit,nokute78/fluent-bit,nokute78/fluent-bit,nokute78/fluent-bit,fluent/fluent-bit,fluent/fluent-bit,nokute78/fluent-bit