mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-07 14:20:06 -06:00
Provide a standardized way to handle the C++ "standard" headers
customized to be used with current CMake C++ standard constraints.
Offer under directory `cm` headers which can be used as direct
replacements of the standard ones. For example:
#include <cm/string_view>
can be used safely for CMake development in place of the `<string_view>`
standard header.
Fixes: #19491
20 lines
457 B
C
20 lines
457 B
C
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
file Copyright.txt or https://cmake.org/licensing for details. */
|
|
#ifndef cm_sys_stat_h
|
|
#define cm_sys_stat_h
|
|
|
|
#if defined(_MSC_VER)
|
|
using mode_t = unsigned short;
|
|
#endif
|
|
|
|
#if defined(WIN32)
|
|
using uid_t = unsigned short;
|
|
using gid_t = unsigned short;
|
|
#endif
|
|
|
|
#include <sys/types.h>
|
|
// include sys/stat.h after sys/types.h
|
|
#include <sys/stat.h> // IWYU pragma: export
|
|
|
|
#endif
|