On Apr 16, 7:20 am, eric <es...@[EMAIL PROTECTED]
> wrote:
> It appears the problem was related to variable types. I know lseek()
> on Mac OSX is uses an off_t variable type, but my code which came over
> from Windows uses int types. I was just thrown off because the code
> using "int" worked in one project, just not another, but must have
> been differences in project settings or possibly Objective-C vs C.
>
> Anyway, I'll have to make a wrapper for lseek, since I need the same
> code to compile for Windows and Mac.
Yeah, I ran into the same problem. I was doing a linux -> os x ****t
and I discovered that off_t is 64 bits in BSD. Unsigned if I believe.
Took me a while to figure that out as I was calling lseek in assembly
and only passing it a 32 bit value. That was fun....
Not sure if you can add a conditional compilation option in the source
to fix most of your code, that possibly may be easier than a wrapper.
I did that, but I did not have very many calls to lseek to fix.
Robert Spykerman


|