------- Forwarded Message
>From: jimw@xxxxxxxxxxxxx (Jim Watt)
>Date: Wed, 25 Aug 93 14:44:26 -0800
>Subject: Re: NetCDF on a Mac
>Organization: .
>Keywords: 199308252144.AA14596
>Shengping Ma of Sciex Corporation, Thornhill, Ontario, Canada just reported
>the following regarding the problem with NetCDF on a Mac:
>
> I checked NetCDF file I/O in file.c this morning and modified a few lines
> and it worked.
> The changes are very simple ( if you know what to look for ):
> I basic followed those #ifdef DOS_FS lines in file.c
> and did the same thing by add #ifdef MAC_THINK lines,
> except the following:
> #ifdef DOS_FS
> #define SEP '\\' /* this separates path components on DOS */
> #endif
>
> What I added are:
> #ifdef MAC_THINK
> #define SEP ':'
> #endif
>
>
>This looks entirely right to me - that's the path separator for Mac
>filesystems. Here's the context diff for the test I ran here:
>
>*** file.c Wed Aug 25 14:38:07 1993
>--- file.c.ORIG Wed Aug 25 14:36:13 1993
>***************
>*** 26,34 ****
> #ifdef DOS_FS
> #define SEP '\\' /* this separates path components on DOS */
> #endif
>- #ifdef MAC_THINK
>- #define SEP ':' /* This separates path components on a Mac */
- - #endif
> #ifndef SEP
> #define SEP '/' /* default, unix */
> #endif
>--- 26,31 ----
>
>I don't think *anybody's* maintaining the Mac port at this point.
>Shengping may come as close as anyone, but I know Sciex wouldn't be
>thrilled if she were volunteered for the job! Meanwhile, this fix
>gets the AIA NetCDF mass spectrometry group out of a nasty bind, and
>I thought you'd like to see the result, since you heard about the
>problem. Can this be added to the distributed code? The modifications
>do not cause any problems on SunOS 4.1.3. I don't know whether the
>Mac code now runs the entire test suite, but since Shengping is Cc:'d
>on this note, I'll ask: Shengping, does the whole test suite ("make
>test" for Unix) now work on the Mac?
>
>Jim
>--
>Jim Watt jimw@xxxxxxxxxxxxx
>PE-Nelson Voice: +1 408 725 1107
>10040 Bubb Road Fax: +1 408 725 0825
>Cupertino CA 95014-4132
>
------- End of Forwarded Message