Skip to content

Commit 6247e3c

Browse files
committed
Tricky library symbol issue side-stepped.
1 parent ecf8723 commit 6247e3c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

langs/outlaw/stdlib.rkt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,8 +306,10 @@
306306
;; the primitive system type returns 1 for mac, 0 otherwise;
307307
;; the fall through case is for when %system-type is implemented in Racket
308308
(match (%system-type)
309-
[1 'macosx]
310-
[0 'unix]
309+
;; the use of string->symbol here is to avoid subtle issues about symbol interning
310+
;; in separately compiled libraries
311+
[1 (string->symbol "macosx")]
312+
[0 (string->symbol "unix")]
311313
[x x]))
312314

313315
(define (not x)

0 commit comments

Comments
 (0)