Page 1 of 1

OpenDevice() return type discrepancies

Posted: Tue May 08, 2012 7:30 pm
by AlfredOne
Hello,
in SDK53.20 ,the return type of OpenDevice(...) is declared:
1) 'BYTE' in clib/exec_protos.h
2) 'LONG' in interfaces/exec.h

Should they be equal?

Re: OpenDevice() return type discrepancies

Posted: Tue May 08, 2012 7:38 pm
by salass00
Should they be equal?
Not really. <clib/xxx_protos.h> includes are only for legacy M68k programs. <interfaces/xxx.h> files define the new PPC interfaces used by AmigaOS 4.x native programs.

Re: OpenDevice() return type discrepancies

Posted: Tue May 08, 2012 11:23 pm
by AlfredOne
salass00 wrote:
Should they be equal?
Not really. <clib/xxx_protos.h> includes are only for legacy M68k programs. <interfaces/xxx.h> files define the new PPC interfaces used by AmigaOS 4.x native programs.
Ok!
Thank you for clarification.