This commit is contained in:
a2379 2025-04-01 13:45:21 +08:00 committed by GitHub
commit 3c48d5e2eb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 5 additions and 3 deletions

View file

@ -4,4 +4,5 @@
(define-c void (eval-script! "emscripten_run_script") (string)) (define-c void (eval-script! "emscripten_run_script") (string))
(define-c int (integer-eval-script "emscripten_run_script_int") (string)) (define-c int (integer-eval-script "emscripten_run_script_int") (string))
(define-c string (string-eval-script "emscripten_run_script_string") (string)))) (define-c string (string-eval-script "emscripten_run_script_string") (string)))
(else))

View file

@ -382,7 +382,7 @@
(memq (identifier->symbol x) *features*))) (memq (identifier->symbol x) *features*)))
(let expand ((ls (cdr expr))) (let expand ((ls (cdr expr)))
(cond (cond
((null? ls)) ; (error "cond-expand: no expansions" expr) ((null? ls) (error "cond-expand: no expansions" expr))
((not (pair? (car ls))) (error "cond-expand: bad clause" (car ls))) ((not (pair? (car ls))) (error "cond-expand: bad clause" (car ls)))
((eq? 'else (identifier->symbol (caar ls))) ((eq? 'else (identifier->symbol (caar ls)))
(if (pair? (cdr ls)) (if (pair? (cdr ls))

View file

@ -171,7 +171,8 @@ double sexp_compute_least_double(double f) {
(define-c double (flgamma "tgamma") (double)) (define-c double (flgamma "tgamma") (double))
(cond-expand (cond-expand
(windows (windows
(c-include-verbatim "lgamma_r.c"))) (c-include-verbatim "lgamma_r.c"))
(else))
(define-c double lgamma_r (double (result int))) (define-c double lgamma_r (double (result int)))
(define-c double (flfirst-bessel "jn") (int double)) (define-c double (flfirst-bessel "jn") (int double))