[#795] on Mac, need 'Byte' define

Please log in

State: more information
Closed
Date:
2008-02-29 20:25
Priority: more information
3
Submitted By:
Nick Schmansky (nschmans)
Assigned To: more information
Richard Reynolds (rickr)
Hardware: 
None
Product: 
None
Operating System: 
None
Component: 
None
Version: 
None
Severity: 
None
Resolution: 
None
Summary: more information
on Mac, need 'Byte' define

Detailed description

in the file gifti_io.h, just before #include , could the following lines be included:

#ifdef Darwin
#define __MACTYPES__
#define Byte unsigned char
#endif


i ran into a build problem on the mac, where adding this became necessary. (i had to do the same thing some time ago when building the MNI tools.)

zlib.h uses the keywork 'Byte', but it is not defined anywhere on the mac, hence this fix.

Response

Message

Date: 2009-03-20 18:17
Sender: Richard Reynolds

This is a zlib bug, so it does not seem appropriate to deal with in GIfTI.

Attached Files:

Name Download
No Files Currently Attached

Changes:

Field Old Value Date By
ResolutionInvalid2009-03-20 18:19rickr
ResolutionNone2009-03-20 18:17rickr
status_idOpen2009-03-20 18:17rickr