2 This file is part of LilyPond, the GNU music typesetter.
4 Copyright (C) 2005--2012 Jan Nieuwenhuizen <janneke@gnu.org>
6 LilyPond 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, either version 3 of the License, or
9 (at your option) any later version.
11 LilyPond is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with LilyPond. If not, see <http://www.gnu.org/licenses/>.
20 #ifndef MINGW_COMPATIBILITY_HH
21 #define MINGW_COMPATIBILITY_HH
25 /* Mingw uses invalid names for typedefs and defines. Not yet
26 investigated whether this is a mingw bug or a windows bug (ie,
27 mingw compatibility feature), also not reported yet. */
30 # define LILY_CHAR CHAR
33 # define CHAR MINGW_INFRINGES_ON_OUR_NAMESPACE_USING_CHAR
36 # define LILY_CONTEXT CONTEXT
39 # define CONTEXT MINGW_INFRINGES_ON_OUR_NAMESPACE_USING_CONTEXT
42 # define LILY_DATADIR DATADIR
45 # define DATADIR MINGW_INFRINGES_ON_OUR_NAMESPACE_USING_DATADIR
48 # define LILY_RELATIVE RELATIVE
51 # define RELATIVE MINGW_INFRINGES_ON_OUR_NAMESPACE_USING_RELATIVE
54 # define LILY_THIS THIS
57 # define THIS MINGW_INFRINGES_ON_OUR_NAMESPACE_USING_THIS
59 //#include <winsock2.h>
61 #if defined (__MINGW32__) && !defined (STATIC)
69 # define CHAR LILY_CHAR
74 # define CONTEXT LILY_CONTEXT
80 # define DATADIR LILY_DATADIR
86 # define RELATIVE LILY_RELATIVE
91 # define THIS LILY_THIS
94 #endif /* __MINGW__ */
96 #endif /* MINGW_COMPATIBILITY_HH */