1//========================================================================
2//
3// glibc.h
4//
5// Emulate various non-portable glibc functions.
6//
7// This file is licensed under the GPLv2 or later
8//
9// Copyright (C) 2016, 2017 Adrian Johnson <ajohnson@redneon.com>
10// Copyright (C) 2017 Albert Astals Cid <aacid@kde.org>
11//
12//========================================================================
13
14#ifndef GLIBC_H
15#define GLIBC_H
16
17#include "config.h"
18#include "poppler_private_export.h"
19
20#include <ctime>
21
22#ifndef HAVE_GMTIME_R
23struct tm POPPLER_PRIVATE_EXPORT *gmtime_r(const time_t *timep, struct tm *result);
24#endif
25
26#ifndef HAVE_LOCALTIME_R
27struct tm POPPLER_PRIVATE_EXPORT *localtime_r(const time_t *timep, struct tm *result);
28#endif
29
30#ifndef HAVE_TIMEGM
31time_t POPPLER_PRIVATE_EXPORT timegm(struct tm *tm);
32#endif
33
34#ifndef HAVE_STRTOK_R
35char *strtok_r(char *s, const char *delim, char **save_ptr);
36#endif
37
38#endif // GLIBC_H
39

source code of poppler/goo/glibc.h