This repository was archived by the owner on Aug 31, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +54
-0
lines changed
extensions/libraries/timezone/tz Expand file tree Collapse file tree 1 file changed +54
-0
lines changed Original file line number Diff line number Diff line change 1+ /* LIBRARY_DLLEXPORT should be applied to declarations. LIBRARY_DLLEXPORT_DEF
2+ * should be applied to definitions. */
3+ #ifdef _WIN32
4+ /* On Windows, declaring something as having "dllexport" storage
5+ * modifies the naming of the corresponding symbol, so the export
6+ * attribute must be attached to declarations (and possibly to the
7+ * definition *as well* if no separate declaration appears) */
8+ # ifdef _MSC_VER
9+ # define LIBRARY_DLLEXPORT __declspec(dllexport)
10+ # else
11+ # define LIBRARY_DLLEXPORT __attribute__((dllexport))
12+ # endif
13+ # define LIBRARY_DLLEXPORT_DEF LIBRARY_DLLEXPORT
14+ #else
15+ /* On non-Windows platforms, the external visibility of a symbol is
16+ * simply a property of its definition (i.e. whether or not it should
17+ * appear in the list of exported symbols). */
18+ # define LIBRARY_DLLEXPORT
19+ # define LIBRARY_DLLEXPORT_DEF __attribute__((__visibility__("default"), __used__))
20+ #endif
21+
22+
23+ #ifndef __TZ_H__
24+ #define __TZ_H__
25+
26+ /* Make this header file easier to include in C++ code */
27+ #ifdef __cplusplus
28+ extern "C" {
29+ #endif
30+
31+ LIBRARY_DLLEXPORT_DEF
32+ void
33+ tzsetlcl (char const * name );
34+
35+ LIBRARY_DLLEXPORT_DEF
36+ struct tm *
37+ localtime_r (const time_t * timep , struct tm * tmp );
38+
39+ LIBRARY_DLLEXPORT_DEF
40+ struct tm *
41+ gmtime_r (const time_t * timep , struct tm * tmp );
42+
43+ LIBRARY_DLLEXPORT_DEF
44+ time_t
45+ mktime_tz (struct tm * tmp );
46+
47+ LIBRARY_DLLEXPORT_DEF
48+ bool tzsetdir (const char * dir );
49+
50+ #ifdef __cplusplus
51+ }
52+ #endif
53+
54+ #endif /* __TZ_H__ */
You can’t perform that action at this time.
0 commit comments