mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-21 03:13:42 +08:00
Fix missing forward declarations
re: issue https://github.com/Unidata/netcdf-c/issues/1687 static functions are being used before decl and it causes errors. Only occurs when BIG_ENDIAN is defined. Solution is to add the forward declarations.
This commit is contained in:
parent
03b3b89097
commit
6f86660da8
@ -40,6 +40,10 @@ Unified filter related code
|
||||
|
||||
/* Forward */
|
||||
static int gettype(const int q0, const int q1, int* unsignedp);
|
||||
#ifdef WORDS_BIGENDIAN
|
||||
static void byteswap8(unsigned char* mem);
|
||||
static void byteswap4(unsigned char* mem);
|
||||
#endif
|
||||
|
||||
const struct LegalFormat {
|
||||
const char* tag;
|
||||
|
@ -122,6 +122,11 @@ static const char* spectype[] = {"i", "b", "ub", "s", "us", "i", "ui", "i", "i",
|
||||
|
||||
static int nerrs = 0;
|
||||
|
||||
#ifdef WORDS_BIGENDIAN
|
||||
static void byteswap8(unsigned char* mem);
|
||||
static void byteswap4(unsigned char* mem);
|
||||
#endif
|
||||
|
||||
static void
|
||||
mismatch(size_t i, unsigned int *params, const char* tag)
|
||||
{
|
||||
|
@ -4,6 +4,7 @@
|
||||
*/
|
||||
|
||||
|
||||
#include "config.h"
|
||||
#include <hdf5.h>
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user