NOAA-EMC / NCEPLIBS-g2c

This library contains C decoder/encoder routines for GRIB edition 2.
Other
17 stars 11 forks source link

Remove unused unistd.h from grib2.h.in #469

Closed TimothyCera-NOAA closed 5 months ago

TimothyCera-NOAA commented 6 months ago

The unistd.h header is not needed for the library, and is preventing the compilation of the library on Windows. I was able to compile on Linux without it and tried combinations of features. It seems that unistd.h is primarily used to supply getopt for the command line utilities. For Windows (which I am trying to put together a conda package for), I think it is fine to just have the library available.