Fix compilation errors in CCL (and probably other implementations) #16

Merged
ntrocado merged 2 commits from endless into endless 2023-01-25 14:00:40 +00:00
3 changed files with 3 additions and 1 deletions

View file

@ -20,6 +20,7 @@ There are some basic examples in `osc-examples.lisp` and the `devices/examples/o
- will raise an exception if input is malformed - will raise an exception if input is malformed
- no pattern matching on addresses - no pattern matching on addresses
- float en/decoding only tested on sbcl, cmucl, openmcl and allegro - float en/decoding only tested on sbcl, cmucl, openmcl and allegro
- the `devices` module only works on sbcl
- only supports the type(tag)s specified in the OSC spec - only supports the type(tag)s specified in the OSC spec
## things to do in :osc ## things to do in :osc

View file

@ -65,7 +65,7 @@ with microsecond precision, relative to 19700101."
(coerce (/ usecs +usecs+) 'double-float)) (coerce (/ usecs +usecs+) 'double-float))
(defun subsecs->microseconds (subsecs) (defun subsecs->microseconds (subsecs)
(declare (type (float 0 1) subsecs)) (declare (type (float 0.0 1.0) subsecs))
(round (* subsecs +usecs+))) (round (* subsecs +usecs+)))
(defun int32->subsecs (int32) (defun int32->subsecs (int32)

View file

@ -17,6 +17,7 @@
(:file "osc-tests" :depends-on ("osc")) (:file "osc-tests" :depends-on ("osc"))
(:file "package") (:file "package")
(:module "devices" (:module "devices"
:if-feature :sbcl
:depends-on ("package" "osc-data") :depends-on ("package" "osc-data")
:components :components
((:file "socket-functions") ((:file "socket-functions")