Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gabime/spdlog.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Lewis <admin@ordoevangelistarum.com>2019-06-15 21:10:12 +0300
committerThomas Lewis <admin@ordoevangelistarum.com>2019-06-15 21:10:12 +0300
commitcee913d76e91e92f2507af2d8d1550f8cc7ee50c (patch)
tree8dc680ef0a7e7dc22520bebb45e9aa96274d764b
parent7088644d3f69f18b51671eb52dd49028fd858add (diff)
Added __HAIKU__ to #if for stat64 struct.
-rw-r--r--include/spdlog/details/os.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/spdlog/details/os.h b/include/spdlog/details/os.h
index 42f61581..e0fb3a18 100644
--- a/include/spdlog/details/os.h
+++ b/include/spdlog/details/os.h
@@ -237,7 +237,7 @@ inline size_t filesize(FILE *f)
#else // unix
int fd = fileno(f);
// 64 bits(but not in osx or cygwin, where fstat64 is deprecated)
-#if !defined(__OpenBSD__) && !defined(__FreeBSD__) && !defined(__APPLE__) && (defined(__x86_64__) || defined(__ppc64__)) && !defined(__CYGWIN__)
+#if !defined(__OpenBSD__) && !defined(__FreeBSD__) && !defined(__APPLE__) && !defined(__HAIKU__) && (defined(__x86_64__) || defined(__ppc64__)) && !defined(__CYGWIN__)
struct stat64 st;
if (fstat64(fd, &st) == 0)
{