From 89720cb26814f809fe0674e443d758ff830efdaa Mon Sep 17 00:00:00 2001 From: Peter Hillman Date: Tue, 18 Jun 2024 15:18:17 +1200 Subject: [PATCH] fix windows build Signed-off-by: Peter Hillman --- src/bin/exrmetrics/exrmetrics.cpp | 6 ------ src/bin/exrmetrics/exrmetrics.h | 2 -- 2 files changed, 8 deletions(-) diff --git a/src/bin/exrmetrics/exrmetrics.cpp b/src/bin/exrmetrics/exrmetrics.cpp index d5b2dc5c6c..07a3dfd409 100644 --- a/src/bin/exrmetrics/exrmetrics.cpp +++ b/src/bin/exrmetrics/exrmetrics.cpp @@ -340,15 +340,9 @@ exrmetrics ( .c_str ()); } } -#ifdef __APPLE__ struct stat instats, outstats; stat (inFileName, &instats); stat (outFileName, &outstats); -#else - struct stat64 instats, outstats; - stat64 (inFileName, &instats); - stat64 (outFileName, &outstats); -#endif cout << " \"input file size\": " << instats.st_size << ",\n"; cout << " \"output file size\": " << outstats.st_size << "\n"; cout << "}\n"; diff --git a/src/bin/exrmetrics/exrmetrics.h b/src/bin/exrmetrics/exrmetrics.h index 673d4ad78b..92c880b44d 100644 --- a/src/bin/exrmetrics/exrmetrics.h +++ b/src/bin/exrmetrics/exrmetrics.h @@ -10,7 +10,6 @@ #include "ImfCompression.h" -extern "C" { void exrmetrics ( const char inFileName[], const char outFileName[], @@ -19,5 +18,4 @@ void exrmetrics ( float level, int halfMode, bool verbose); -} #endif