Header files: Fix broken Windows build

This commit is contained in:
Shahram Najm 2023-12-09 15:52:01 +00:00
parent 1bb1579ae2
commit fdc57f8c26
1 changed files with 7 additions and 1 deletions

View File

@ -1469,7 +1469,8 @@ struct grib_smart_table
grib_smart_table_entry* entries; grib_smart_table_entry* entries;
}; };
#if defined(ECCODES_TIMER)
#if ECCODES_TIMER
typedef struct grib_timer typedef struct grib_timer
{ {
struct timeval start_; struct timeval start_;
@ -1488,6 +1489,11 @@ typedef struct grib_timer
struct grib_timer* next_; struct grib_timer* next_;
} grib_timer; } grib_timer;
#else
typedef struct grib_timer
{
char nothing;
} grib_timer;
#endif #endif
typedef struct j2k_encode_helper typedef struct j2k_encode_helper