avoid trying to load Foundation framework on non-Mac OS
Relevant to #1549
This commit is contained in:
parent
88b2d5d4e6
commit
78bbcec963
|
@ -7,8 +7,9 @@
|
||||||
call-with-autorelease))
|
call-with-autorelease))
|
||||||
|
|
||||||
;; Make sure Foundation is loaded:
|
;; Make sure Foundation is loaded:
|
||||||
(void (ffi-lib "/System/Library/Frameworks/Foundation.framework/Foundation"
|
(when (eq? 'macosx (system-type))
|
||||||
#:fail (lambda () #f)))
|
(void (ffi-lib "/System/Library/Frameworks/Foundation.framework/Foundation"
|
||||||
|
#:fail (lambda () #f))))
|
||||||
|
|
||||||
(import-class NSAutoreleasePool)
|
(import-class NSAutoreleasePool)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user