mirror of
https://github.com/nmap/nmap.git
synced 2026-09-21 15:46:45 +00:00
Can't use a macro for a declared function (win32)
This commit is contained in:
parent
162aa15d25
commit
20f47dd6f2
1 changed files with 4 additions and 1 deletions
|
|
@ -161,7 +161,10 @@ nanosleep(&ts, NULL);
|
|||
* time_t const* const sourceTime
|
||||
* );
|
||||
*/
|
||||
#define n_localtime(timer, result) localtime_s(result, timer)
|
||||
int n_localtime(const time_t *timer, struct tm *result) {
|
||||
return localtime_s(result, timer);
|
||||
}
|
||||
|
||||
#else
|
||||
#include <errno.h>
|
||||
int n_localtime(const time_t *timer, struct tm *result) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue