mirror of
https://github.com/autc04/Retro68.git
synced 2024-12-26 16:29:28 +00:00
make libretro be the same for carbon and classic
This commit is contained in:
parent
b09ecaf30b
commit
dbfa7e8645
@ -85,17 +85,17 @@ ssize_t _read_r(struct _reent *reent, int fd, void *buf, size_t count)
|
|||||||
int _open_r(struct _reent *reent, const char* name, int flags, int mode)
|
int _open_r(struct _reent *reent, const char* name, int flags, int mode)
|
||||||
{
|
{
|
||||||
Str255 pname;
|
Str255 pname;
|
||||||
#if TARGET_API_MAC_CARBON
|
/*#if TARGET_API_MAC_CARBON
|
||||||
// Carbon has the new, sane version.
|
// Carbon has the new, sane version.
|
||||||
c2pstrcpy(pname,name);
|
c2pstrcpy(pname,name);
|
||||||
#else
|
#else*/
|
||||||
// It is also availble in various glue code libraries and
|
// It is also availble in various glue code libraries and
|
||||||
// in some versions of InterfaceLib, but it's confusing.
|
// in some versions of InterfaceLib, but it's confusing.
|
||||||
// Using the inplace variant, c2pstr, isn't much better than
|
// Using the inplace variant, c2pstr, isn't much better than
|
||||||
// doing things by hand:
|
// doing things by hand:
|
||||||
strncpy(&pname[1],name,255);
|
strncpy(&pname[1],name,255);
|
||||||
pname[0] = strlen(name);
|
pname[0] = strlen(name);
|
||||||
#endif
|
//#endif
|
||||||
short ref;
|
short ref;
|
||||||
|
|
||||||
SInt8 permission;
|
SInt8 permission;
|
||||||
|
Loading…
Reference in New Issue
Block a user