NetSurf
oslib_pre7.h
Go to the documentation of this file.
1/*
2 * Copyright 2008 John Tytgat <joty@netsurf-browser.org>
3 *
4 * This file is part of NetSurf, http://www.netsurf-browser.org/
5 *
6 * NetSurf is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
9 *
10 * NetSurf is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19/** \file
20 * Backward compatible defines to make NetSurf buildable with pre-OSLib 7
21 * releases.
22 */
23
24#ifndef _NETSURF_RISCOS_OSLIB_PRE7_H_
25#define _NETSURF_RISCOS_OSLIB_PRE7_H_
26
27#include "oslib/colourtrans.h"
28
29/**
30 * After OSLib 6.90, there was a rename of colourtrans defines in order
31 * to avoid namespace clashes:
32 * svn diff -c 238 https://ro-oslib.svn.sourceforge.net/svnroot/ro-oslib/trunk/\!OSLib/Source/Core/oslib/ColourTrans.swi
33 * Foresee some backwards compatibility until we've switched to OSLib 7.
34*/
35#ifndef colourtrans_SET_BG_GCOL
36# define colourtrans_SET_BG_GCOL colourtrans_SET_BG
37#endif
38#ifndef colourtrans_USE_ECFS_GCOL
39# define colourtrans_USE_ECFS_GCOL colourtrans_USE_ECFS
40#endif
41
42#endif