Skip to Content.
Sympa Menu

h5part - Re: [H5part] Patch#1 : Win32 compiler support

h5part AT

Subject: H5Part development and discussion

List archive

Re: [H5part] Patch#1 : Win32 compiler support

Chronological Thread 
  • From: John Biddiscombe <biddisco AT>
  • To: Achim Gsell <achim.gsell AT>, h5part AT
  • Subject: Re: [H5part] Patch#1 : Win32 compiler support
  • Date: Thu, 10 May 2007 10:31:37 +0200
  • List-archive: <>
  • List-id: H5Part development and discussion <>

OK, I will rename "_errno" to something like "_h5part_errno". But there is one place where we have to access the system "errno" to check whether the file already exists in the "H5PartOpen...() function.
OK. If you remove _errno and use _h5errno instead then the only thing required should be

#ifndef WIN32
#include <unistd.h>
#include <io.h>
#define open _open
#define close _close

this goes back in the private declarations

static h5part_int64_t _h5errno = H5PART_SUCCESS;

and then you just use _h5errno in place of the old _errno except the system errno which is ok to leave alone on windows.

by not using the varname _errno, all the issues go away.

I won't send a patch because I've already made some other changes which were supposed to be patch #2


John Biddiscombe, email:biddisco @
CSCS, Swiss National Supercomputing Centre | Tel: +41 (91) 610.82.07
Via Cantonale, 6928 Manno, Switzerland | Fax: +41 (91) 610.82.82

Archive powered by MHonArc 2.6.19.

Top of Page