planetbeing / libdmg-hfsplus

Portable libraries and utilities that manipulate HFS+ volumes and Apple's DMG images
GNU General Public License v3.0
159 stars 104 forks source link

compilation error: bufferRead undeclared #2

Open throwaway-zz opened 13 years ago

throwaway-zz commented 13 years ago

I'm not sure how this escaped notice (except that this repository doesn't seem active), but the latest commit containing ADC support doesn't compile.

The 'bufferRead' variable needs to be declared in dmg/dmgfile.c and dmg/io.c, and it also looks like there should be an initialization statement (bufferRead = 0) in dmg/io.c, just like there is in dmg/dmgfile.c.

HankHub commented 13 years ago

Just modify the files and add the variable bufferRead to the function in which it appears.

int bufferRead ;

maci0 commented 9 years ago

this issue is still present