Last change
on this file since 473 was 457, checked in by coas-nagasima, 4 years ago |
ファイルを追加
|
-
Property svn:eol-style
set to
native
-
Property svn:mime-type
set to
text/x-csrc;charset=UTF-8
|
File size:
1.2 KB
|
Line | |
---|
1 | // Copyright (c) Microsoft. All rights reserved.
|
---|
2 | // Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
---|
3 |
|
---|
4 | /*depending if the symbol GB_TIME_INTERCEPT is defined, this file does the following
|
---|
5 |
|
---|
6 | a) if GB_TIME_INTERCEPT is NOT defined, then the file shall be empty (almost:)
|
---|
7 | b) if GB_TIME_INTERCEPT is defined, then the file shall call to the 'real' time.h functions from their gb_* synonyms*/
|
---|
8 | #ifdef _MSC_VER
|
---|
9 | /* compiler warning C4206: nonstandard extension used: translation unit is empty */
|
---|
10 | /* linker warning 4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library */
|
---|
11 | const int avoid_warnings_0CA668EF_F2C4_49A8_A30D_7257C67173A4 = 0;
|
---|
12 | #endif
|
---|
13 | #ifdef GB_TIME_INTERCEPT
|
---|
14 |
|
---|
15 | #ifdef __cplusplus
|
---|
16 | #include <ctime>
|
---|
17 | #else
|
---|
18 | #include <time.h>
|
---|
19 | #endif
|
---|
20 |
|
---|
21 | #include "azure_c_shared_utility/gb_time.h"
|
---|
22 |
|
---|
23 | /*this is time*/
|
---|
24 | time_t gb_time(time_t *timer);
|
---|
25 | {
|
---|
26 | return time(timer);
|
---|
27 | }
|
---|
28 |
|
---|
29 | /*this is localtime*/
|
---|
30 | struct tm *gb_localtime(const time_t *timer)
|
---|
31 | {
|
---|
32 | return gb_localtime(timer);
|
---|
33 | }
|
---|
34 |
|
---|
35 | size_t gb_strftime(char * s, size_t maxsize, const char * format, const struct tm * timeptr)
|
---|
36 | {
|
---|
37 | return strftime(s, maxsize, format, timeptr);
|
---|
38 | }
|
---|
39 |
|
---|
40 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.