CMake/Source/cm_sys_stat.h
Regina Pfeifer a1ddf2d0ba clang-tidy: Replace typedef with using
Automate the conversion with

  perl -i -0pe 's/typedef ([^;]*) ([^ ]+);/using $2 = $1;/g'

then manually fix a few places.
2019-09-04 18:03:01 +02:00

20 lines
434 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>
#endif