mirror of
https://github.com/HDFGroup/hdf5.git
synced 2026-09-25 04:09:44 +03:00
Fix some compile failures in API tests (#2913)
This commit is contained in:
@@ -2568,19 +2568,6 @@ extend_readAll(void)
|
||||
}
|
||||
|
||||
#ifdef H5_HAVE_FILTER_DEFLATE
|
||||
static const char *
|
||||
h5_rmprefix(const char *filename)
|
||||
{
|
||||
const char *ret_ptr;
|
||||
|
||||
if ((ret_ptr = HDstrstr(filename, ":")) == NULL)
|
||||
ret_ptr = filename;
|
||||
else
|
||||
ret_ptr++;
|
||||
|
||||
return (ret_ptr);
|
||||
}
|
||||
|
||||
/*
|
||||
* Example of using the parallel HDF5 library to read a compressed
|
||||
* dataset in an HDF5 file with collective parallel access support.
|
||||
|
||||
@@ -36,19 +36,6 @@ static int mpi_size, mpi_rank;
|
||||
#define HS_DIM1 200
|
||||
#define HS_DIM2 100
|
||||
|
||||
const char *
|
||||
h5_rmprefix(const char *filename)
|
||||
{
|
||||
const char *ret_ptr;
|
||||
|
||||
if ((ret_ptr = HDstrstr(filename, ":")) == NULL)
|
||||
ret_ptr = filename;
|
||||
else
|
||||
ret_ptr++;
|
||||
|
||||
return (ret_ptr);
|
||||
}
|
||||
|
||||
#ifdef H5_HAVE_FILTER_SZIP
|
||||
|
||||
/*-------------------------------------------------------------------------
|
||||
|
||||
@@ -28,6 +28,10 @@
|
||||
#include "hdf5.h"
|
||||
#include "testphdf5.h"
|
||||
|
||||
#ifndef PATH_MAX
|
||||
#define PATH_MAX 512
|
||||
#endif
|
||||
|
||||
/* FILENAME and filenames must have the same number of names.
|
||||
* Use PARATESTFILE in general and use a separated filename only if the file
|
||||
* created in one test is accessed by a different test.
|
||||
@@ -3967,12 +3971,6 @@ ckrbrd_hs_dr_pio_test(ShapeSameTestMethods sstest_type)
|
||||
* Main driver of the Parallel HDF5 tests
|
||||
*/
|
||||
|
||||
#include "testphdf5.h"
|
||||
|
||||
#ifndef PATH_MAX
|
||||
#define PATH_MAX 512
|
||||
#endif /* !PATH_MAX */
|
||||
|
||||
/* global variables */
|
||||
int dim0;
|
||||
int dim1;
|
||||
|
||||
Reference in New Issue
Block a user