/***************************************************************************
 * RVT-H Tool                                                              *
 * config.libc.h.in: Common libc function detection. (source file)         *
 *                                                                         *
 * Copyright (c) 2016-2022 by David Korth.                                 *
 * SPDX-License-Identifier: GPL-2.0-or-later                               *
 ***************************************************************************/

#ifndef __RVTHTOOL_CONFIG_LIBC_H__
#define __RVTHTOOL_CONFIG_LIBC_H__

/* Define to the size of `off_t` if it's available. */
#cmakedefine SIZEOF_OFF_T @OFF_T@

/* Define to the size of `off64_t` if it's available. */
#cmakedefine SIZEOF_OFF64_T @OFF64_T@

/** Time functions **/

/* Define to 1 if you have the `gmtime_r` function. */
#cmakedefine HAVE_GMTIME_R 1

/* Define to 1 if you have the `gmtime_s` function. */
#cmakedefine HAVE_GMTIME_S 1

/* Define to 1 if you have the `localtime_r' function. */
#cmakedefine HAVE_LOCALTIME_R 1

/* Define to 1 if you have the `localtime_s' function. */
#cmakedefine HAVE_LOCALTIME_S 1

/* Define to 1 if you have the `timegm' function. */
#cmakedefine HAVE_TIMEGM 1

/* Define to 1 if you have the `_mkgmtime' function. */
#cmakedefine HAVE__MKGMTIME 1

/* Define to 1 if you have the `_mkgmtime32' function. */
#cmakedefine HAVE__MKGMTIME32 1

/* Define to 1 if you have the `_mkgmtime64' function. */
#cmakedefine HAVE__MKGMTIME64 1

/** Other functions **/

/* Define to 1 if you have the `statx` function. */
#cmakedefine HAVE_STATX 1

#endif /* __RVTHTOOL_CONFIG_LIBC_H__ */
