-
Notifications
You must be signed in to change notification settings - Fork 146
/
pws_time.h
34 lines (29 loc) · 898 Bytes
/
pws_time.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
* Copyright (c) 2003-2019 Rony Shapiro <ronys@pwsafe.org>.
* All rights reserved. Use of the code is allowed under the
* Artistic License 2.0 terms, as specified in the LICENSE file
* distributed with this code, or available from
* http://www.opensource.org/licenses/artistic-license-2.0.php
*/
#ifndef __PWS_TIME_H
#define __PWS_TIME_H
#include "../typedefs.h"
#include <stdint.h>
#ifdef __FreeBSD__
#include <time.h>
#endif
#if !defined(__time64_t) && !defined(__TIME64_T_TYPE)
typedef uint64_t __time64_t;
#endif
extern int localtime64_r(const __time64_t *timep, struct tm *result);
namespace pws_os {
/**
* Workaround the lack of a wchar_t version of asctime()
*/
extern int asctime(TCHAR *buf, size_t N, const struct tm *tm);
}
#endif /* __PWS_TIME_H */
//-----------------------------------------------------------------------------
// Local variables:
// mode: c++
// End: