diff --git a/.github/workflows/developer.yml b/.github/workflows/developer.yml index 04c5076..b046948 100644 --- a/.github/workflows/developer.yml +++ b/.github/workflows/developer.yml @@ -40,7 +40,7 @@ jobs: jasper-version: version-4.0.0 ip-version: develop g2c-version: develop - g2c-cmake-args: -DUSE_JASPER=ON + g2c-cmake-args: -DUSE_JASPER=ON -DBUILD_G2C=ON - name: checkout uses: actions/checkout@v4 diff --git a/wgrib2/GDT.c b/wgrib2/GDT.c index 34c4a14..b56eb33 100644 --- a/wgrib2/GDT.c +++ b/wgrib2/GDT.c @@ -7,7 +7,7 @@ #ifdef USE_G2CLIB -#include +#include "grib2.h" g2int g2_unpack3(unsigned char *,g2int *,g2int **,g2int **, g2int *,g2int **,g2int *); diff --git a/wgrib2/init.c b/wgrib2/init.c index 23922a1..dbaa94f 100644 --- a/wgrib2/init.c +++ b/wgrib2/init.c @@ -20,7 +20,7 @@ #include "fnlist.h" #ifdef USE_G2CLIB -#include +#include "grib2.h" extern gribfield *grib_data; extern int free_gribfield; // flag for allocated gribfield #endif diff --git a/wgrib2/wgrib2.c b/wgrib2/wgrib2.c index c30abe9..806a5f2 100644 --- a/wgrib2/wgrib2.c +++ b/wgrib2/wgrib2.c @@ -27,7 +27,7 @@ jmp_buf fatal_err; #include "fnlist.h" #ifdef USE_G2CLIB -#include +#include "grib2.h" gribfield *grib_data; int free_gribfield; // flag for allocated gribfield #endif