summaryrefslogtreecommitdiffstats
path: root/Source/cm_fileno.cxx
blob: a40c5ca676cca9966550fc9dd478c7dc21667a1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
   file Copyright.txt or https://cmake.org/licensing for details.  */
#if !defined(_POSIX_C_SOURCE) && !defined(_WIN32) && !defined(__sun) &&       \
  !defined(__OpenBSD__)
/* POSIX APIs are needed */
// NOLINTNEXTLINE(bugprone-reserved-identifier)
#  define _POSIX_C_SOURCE 200809L
#endif

#include "cm_fileno.hxx"

int cm_fileno(FILE* f)
{
  return fileno(f);
}