cafdfc67de6f99b37223460be6884777060ed645
[guile-r6rs-libs.git] / src / compat.h
blobcafdfc67de6f99b37223460be6884777060ed645
1 /* Guile-R6RS-Libs --- Implementation of R6RS standard libraries.
2 Copyright (C) 2008 Ludovic Courtès <ludo@gnu.org>
4 Guile-R6RS-Libs is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 2.1 of the License, or (at your option) any later version.
9 Guile-R6RS-Libs is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Lesser General Public License for more details.
14 You should have received a copy of the GNU Lesser General Public
15 License along with Guile-R6RS-Libs; if not, write to the Free Software
16 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */
18 #ifndef GUILE_R6RS_COMPAT_H
19 #define GUILE_R6RS_COMPAT_H
21 #ifdef HAVE_CONFIG_H
22 # include <config.h>
23 #endif
25 /* The `scm_set_port_read ()' method is scheduled to appear in Guile 1.8.6,
26 providing a flexible and better performing replacement for the
27 `fill_input' port method. */
29 #ifdef HAVE_SCM_SET_PORT_READ
30 # define PORT_FILL_INPUT_METHOD(m) NULL
31 #else
32 # define PORT_FILL_INPUT_METHOD(m) (m)
33 # define scm_set_port_read(p, r) do { } while (0)
34 #endif
36 #endif