Line | Count | Source |
1 | /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying | |
2 | file LICENSE.rst or https://cmake.org/licensing for details. */ | |
3 | #if !defined(_POSIX_C_SOURCE) && !defined(_WIN32) && !defined(__sun) && \ | |
4 | !defined(__OpenBSD__) | |
5 | /* POSIX APIs are needed */ | |
6 | // NOLINTNEXTLINE(bugprone-reserved-identifier) | |
7 | # define _POSIX_C_SOURCE 200809L | |
8 | #endif | |
9 | ||
10 | #include "cm_fileno.hxx" | |
11 | ||
12 | int cm_fileno(FILE* f) | |
13 | 0 | { |
14 | 0 | return fileno(f); |
15 | 0 | } |