Skip to Content.
Sympa Menu

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

h5part AT

Subject: H5Part development and discussion

List archive

[H5part] Patch#1 : Win32 compiler support

Chronological Thread 
  • From: John Biddiscombe <biddisco AT>
  • To: h5part AT
  • Subject: [H5part] Patch#1 : Win32 compiler support
  • Date: Wed, 09 May 2007 21:30:23 +0200
  • List-archive: <>
  • List-id: H5Part development and discussion <>

Please find attached a patch which allows H5Part to build on MSVC7/8 and I also compiled on linux gcc (GCC) 3.4.5 20051201 (Red Hat 3.4.5-2) once the changes were made to make sure it's ok still.

The Win32 support is not as bad as it looks (only tried 32 bit compiler, but will also use 64 bit soon). Mostly it is in H5Part.c where 'errno' is used a lot, I had to macro a set_errno and get_errno to make it tidy. In a few places it was necessary to add a cast in front of malloc becuase under msvc you must compile as cpp and not C (see my previous post of a month or two ago).

I will send further patches to address my list of fixes of the aforementioned email if this is accepted and applied.



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