Compare commits
5 Commits
f31e9d99ff
...
1ed09307a7
Author | SHA1 | Date |
---|---|---|
Wolfgang Thaller | 1ed09307a7 | |
Wolfgang Thaller | 99de31d45a | |
Adam Goode | 5157624174 | |
Adam Goode | 05a3f397e1 | |
Adam Goode | 085ef7e333 |
|
@ -21,11 +21,11 @@
|
|||
"multiversal": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1703617805,
|
||||
"narHash": "sha256-GngLWR9i+hC7hJ+ZkKlRK4K63lIJ4D/CMXZwefcVAqw=",
|
||||
"lastModified": 1712682701,
|
||||
"narHash": "sha256-/bHk7tU3+xxIs4YGLUyJVG9RsVO23ek41R//eO1F22Q=",
|
||||
"owner": "autc04",
|
||||
"repo": "multiversal",
|
||||
"rev": "27c08c654bbd48d23f025741e3a584b59374904a",
|
||||
"rev": "32dff28d1d618972cc2f544c86ee017b6464fa89",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
|
@ -16,3 +16,11 @@
|
|||
#undef CPP_SPEC
|
||||
#define CPP_SPEC "-Wno-trigraphs"
|
||||
|
||||
#undef TARGET_OS_CPP_BUILTINS
|
||||
#define TARGET_OS_CPP_BUILTINS() \
|
||||
do \
|
||||
{ \
|
||||
builtin_define ("macintosh"); \
|
||||
builtin_define ("Macintosh"); \
|
||||
} \
|
||||
while (0)
|
||||
|
|
|
@ -152,6 +152,8 @@
|
|||
builtin_define ("__PPC__"); \
|
||||
builtin_define ("__POWERPC__"); \
|
||||
builtin_define ("__NATURAL_ALIGNMENT__"); \
|
||||
builtin_define ("macintosh"); \
|
||||
builtin_define ("Macintosh"); \
|
||||
builtin_assert ("system=macos"); \
|
||||
builtin_assert ("cpu=powerpc"); \
|
||||
builtin_assert ("machine=powerpc"); \
|
||||
|
|
|
@ -135,8 +135,14 @@ int _open_r(struct _reent *reent, const char* name, int flags, int mode)
|
|||
|
||||
int _close_r(struct _reent *reent, int fd)
|
||||
{
|
||||
if(fd >= kMacRefNumOffset)
|
||||
FSClose(fd - kMacRefNumOffset);
|
||||
if(fd >= kMacRefNumOffset) {
|
||||
short refNum = fd - kMacRefNumOffset;
|
||||
short vRefNum;
|
||||
OSErr err = GetVRefNum(refNum, &vRefNum);
|
||||
FSClose(refNum);
|
||||
if (err == noErr)
|
||||
FlushVol(NULL, vRefNum);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 27c08c654bbd48d23f025741e3a584b59374904a
|
||||
Subproject commit 32dff28d1d618972cc2f544c86ee017b6464fa89
|
Loading…
Reference in New Issue