From fdc57f8c2628868a4c7c8611dd5fba3630ac2323 Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Sat, 9 Dec 2023 15:52:01 +0000 Subject: [PATCH] Header files: Fix broken Windows build --- src/grib_api_internal.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/grib_api_internal.h b/src/grib_api_internal.h index 53f276b0f..b48aed6ff 100644 --- a/src/grib_api_internal.h +++ b/src/grib_api_internal.h @@ -1469,7 +1469,8 @@ struct grib_smart_table grib_smart_table_entry* entries; }; -#if defined(ECCODES_TIMER) + +#if ECCODES_TIMER typedef struct grib_timer { struct timeval start_; @@ -1488,6 +1489,11 @@ typedef struct grib_timer struct grib_timer* next_; } grib_timer; +#else +typedef struct grib_timer +{ + char nothing; +} grib_timer; #endif typedef struct j2k_encode_helper