UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
Loading...
Searching...
No Matches
src
compat
time.h
Go to the documentation of this file.
1
7
/*
8
* Copyright (c) 2024 CESNET
9
* All rights reserved.
10
*
11
* Redistribution and use in source and binary forms, with or without
12
* modification, is permitted provided that the following conditions
13
* are met:
14
*
15
* 1. Redistributions of source code must retain the above copyright
16
* notice, this list of conditions and the following disclaimer.
17
*
18
* 2. Redistributions in binary form must reproduce the above copyright
19
* notice, this list of conditions and the following disclaimer in the
20
* documentation and/or other materials provided with the distribution.
21
*
22
* 3. Neither the name of CESNET nor the names of its contributors may be
23
* used to endorse or promote products derived from this software without
24
* specific prior written permission.
25
*
26
* THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS
27
* "AS IS" AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING,
28
* BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
29
* AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
30
* EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
31
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
32
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
33
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
34
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
35
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
36
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
37
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
38
*/
39
40
#ifndef COMPAT_MISC_H_7C0E2D4B_7D55_4107_918B_7BF2BEB92428
41
#define COMPAT_MISC_H_7C0E2D4B_7D55_4107_918B_7BF2BEB92428
42
43
#include <
time.h
>
44
45
#ifndef __STDC_LIB_EXT1__
46
#ifdef _WIN32
47
#define gmtime_s(timer, buf) gmtime_s(buf, timer)
48
#define localtime_s(timer, buf) localtime_s(buf, timer)
49
#else
50
#define gmtime_s gmtime_r
51
#define localtime_s localtime_r
52
#endif
53
#endif
// ! defined __STDC_LIB_EXT1__
54
55
#endif
// !defined COMPAT_MISC_H_7C0E2D4B_7D55_4107_918B_7BF2BEB92428
time.h
Generated on Wed Sep 25 2024 14:27:16 for UltraGrid by
1.12.0