1.6.5 release: Fixed several build errors reported by Iuri Prilepov on Ubuntu 11.04.
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
#include <string.h>
|
||||
#include <H5Part.h>
|
||||
|
||||
#include "testframe.h"
|
||||
|
||||
+2
-2
@@ -536,7 +536,7 @@ TestPrintf(const char *format, ...)
|
||||
int nproc;
|
||||
MPI_Comm_rank(MPI_COMM_WORLD, &nproc);
|
||||
if ( nproc == 0 || VERBOSE_HI ) {
|
||||
char *format2 = malloc(strlen(format)+8);
|
||||
char *format2 = (char*)malloc(strlen(format)+8);
|
||||
sprintf(format2, "[%d] %s", nproc, format);
|
||||
va_start(arglist, format);
|
||||
ret_value = vprintf(format2, arglist);
|
||||
@@ -570,7 +570,7 @@ TestErrPrintf(const char *format, ...)
|
||||
int nproc;
|
||||
MPI_Comm_rank(MPI_COMM_WORLD, &nproc);
|
||||
if ( nproc == 0 || VERBOSE_HI ) {
|
||||
char *format2 = malloc(strlen(format)+8);
|
||||
char *format2 = (char*)malloc(strlen(format)+8);
|
||||
sprintf(format2, "[%d] %s", nproc, format);
|
||||
va_start(arglist, format);
|
||||
ret_value = vfprintf(stderr, format2, arglist);
|
||||
|
||||
@@ -6,6 +6,8 @@
|
||||
#ifndef _H5PART_TESTFRAME_H_
|
||||
#define _H5PART_TESTFRAME_H_
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#ifdef PARALLEL_IO
|
||||
#define OPEN(file,mode) \
|
||||
H5PartOpenFileParallel(file,mode,MPI_COMM_WORLD)
|
||||
|
||||
Reference in New Issue
Block a user