mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-20 14:19:18 +02:00
fixes for linux
This commit is contained in:
parent
8a5cfbddc0
commit
b4aaf9b386
3 changed files with 5 additions and 4 deletions
|
@ -13,6 +13,7 @@
|
|||
#define SEXP_BSD 1
|
||||
#else
|
||||
#define SEXP_BSD 0
|
||||
#define _GNU_SOURCE
|
||||
#endif
|
||||
|
||||
#ifndef USE_BOEHM
|
||||
|
|
2
sexp.c
2
sexp.c
|
@ -559,7 +559,7 @@ sexp sexp_get_output_string (sexp port) {
|
|||
fflush(sexp_port_stream(port));
|
||||
return sexp_substring(cookie,
|
||||
sexp_make_integer(0),
|
||||
sexp_string_length(cookie));
|
||||
sexp_make_integer(sexp_string_length(cookie)));
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
6
sexp.h
6
sexp.h
|
@ -5,6 +5,9 @@
|
|||
#ifndef SEXP_H
|
||||
#define SEXP_H
|
||||
|
||||
#include "config.h"
|
||||
#include "defaults.h"
|
||||
|
||||
#include <ctype.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
@ -13,9 +16,6 @@
|
|||
#include <sysexits.h>
|
||||
#include <math.h>
|
||||
|
||||
#include "config.h"
|
||||
#include "defaults.h"
|
||||
|
||||
/* tagging system
|
||||
* bits end in 00: pointer
|
||||
* 01: fixnum
|
||||
|
|
Loading…
Add table
Reference in a new issue