# undef HAVE_STRUCT_STAT_ST_MTIM
#endif
+// Typedefs that make it possible to use common types in ccache header files
+// without including core/wincompat.hpp.
#ifdef _WIN32
-# define NOMINMAX 1
-# define STDIN_FILENO 0
-# define STDOUT_FILENO 1
-# define STDERR_FILENO 2
-
# ifdef _MSC_VER
-# define PATH_MAX MAX_PATH
typedef unsigned __int32 mode_t;
typedef int pid_t;
-
-# ifndef __MINGW32__
+# ifdef _WIN64
typedef __int64 ssize_t;
+# else
+typedef int ssize_t;
# endif
-# endif
-#endif // _WIN32
+# elif !defined(__MINGW32__)
+typedef __int64 ssize_t;
+# endif // _MSC_VER
+#endif // _WIN32
// GCC version of a couple of standard C++ attributes.
#ifdef __GNUC__
#pragma once
#ifdef _WIN32
-
# include <sys/stat.h>
-# ifndef __MINGW32__
-typedef __int64 ssize_t;
-# endif
+# define NOMINMAX 1
+# define STDIN_FILENO 0
+# define STDOUT_FILENO 1
+# define STDERR_FILENO 2
+
+# ifdef _MSC_VER
+# define PATH_MAX MAX_PATH
+# endif // _MSC_VER
// From:
// http://mesos.apache.org/api/latest/c++/3rdparty_2stout_2include_2stout_2windows_8hpp_source.html