bytevectors: Add support for `equal?'.
[guile-r6rs-libs.git] / src / compat.h
blob1318ba38be28fc439e786d113d5c4c8f447a3e53
1 /* Guile-R6RS-Libs --- Implementation of R6RS standard libraries.
2 Copyright (C) 2008, 2009 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 was once proposed to provide a flexible
26 and better performing replacement for the `fill_input' port method:
27 http://lists.gnu.org/archive/html/guile-devel/2008-06/msg00004.html .
28 It has not made it (yet?) into a Guile release. */
30 #ifdef HAVE_SCM_SET_PORT_READ
31 # define PORT_FILL_INPUT_METHOD(m) NULL
32 #else
33 # define PORT_FILL_INPUT_METHOD(m) (m)
34 # define scm_set_port_read(p, r) do { } while (0)
35 #endif
37 #endif