Skip to content

Commit

Permalink
fixing implicit function declarations for g2c functions
Browse files Browse the repository at this point in the history
  • Loading branch information
AlysonStahl-NOAA committed Oct 11, 2024
1 parent 0553b21 commit 295d2c8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions wgrib2/jpeg_pk.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
#include "wgrib2.h"
#include "fnlist.h"

#ifdef USE_JASPER
#include "grib2.h"
#endif

/* 10/2024 Public Domain Wesley Ebisuzaki */

#if defined USE_JASPER || defined USE_OPENJPEG
Expand Down
4 changes: 4 additions & 0 deletions wgrib2/unpk.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@
#include <libaec.h>
#endif

#ifdef USE_JASPER
#include "grib2.h"
#endif

/*
* unpack grib -- only some formats (code table 5.0) are supported
*
Expand Down
2 changes: 0 additions & 2 deletions wgrib2/wgrib2.h
Original file line number Diff line number Diff line change
Expand Up @@ -503,8 +503,6 @@ int scaling(unsigned char **sec, double *base, int *decimal, int *binary, int *n
unsigned char *mk_bms(float *data, unsigned int *ndata);

int dec_png_clone(unsigned char *pngbuf,int *width,int *height, unsigned char *cout, int *grib2_bit_depth, unsigned int ndata);
/*int enc_jpeg2000_clone(unsigned char *cin,int width,int height,int nbits, int ltype,
int ratio, int retry, char *outjpc, int jpclen);*/
#ifdef USE_OPENJPEG
int dec_jpeg2000_clone(char *injpc, int bufsize, int *outfld);
int enc_jpeg2000_clone_float(float *data, int width, int height, int nbits,
Expand Down

0 comments on commit 295d2c8

Please sign in to comment.