You could parse the result of `(system-type 'machine)`, but you might
just as well use a little `ffi/unsafe` binding to get
`NSAppKitVersionNumber`:

 #lang racket/base
 (require ffi/unsafe)

 (define appkit
   (ffi-lib "/System/Library/Frameworks/AppKit.framework/AppKit"))
 (define NSAppKitVersionNumber
   (and appkit (get-ffi-obj 'NSAppKitVersionNumber appkit _double)))

 (define (version-10.11-or-later?)
   (NSAppKitVersionNumber . >= . 1389))


At Tue, 23 Feb 2016 21:46:55 +0100, Jens Axel Søgaard wrote:
> Hi All,
> 
> The function system-type can be used to detect the system type.
> Is there a function that returns the version of the operating system?
> 
> Use case: The paths to LaTeX has changed on El Capitan,
> which makes it difficult to choose a default path, that works
> for all.
> 
> /Jens Axel
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to racket-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to