2 mingw-compatibility.hh -- MINGW workarounds
4 source file of the GNU LilyPond music typesetter
6 (c) 2005--2006 Jan Nieuwenhuizen <janneke@gnu.org>
9 #ifndef MINGW_COMPATIBILITY_HH
10 #define MINGW_COMPATIBILITY_HH
14 /* Mingw uses invalid names for typedefs and defines. Not yet
15 investigated whether this is a mingw bug or a windows bug (ie,
16 mingw compatibility feature), also not reported yet. */
19 # define LILY_CHAR CHAR
22 # define CHAR MINGW_INFRINGES_ON_OUR_NAMESPACE_USING_CHAR
25 # define LILY_CONTEXT CONTEXT
28 # define CONTEXT MINGW_INFRINGES_ON_OUR_NAMESPACE_USING_CONTEXT
31 # define LILY_DATADIR DATADIR
34 # define DATADIR MINGW_INFRINGES_ON_OUR_NAMESPACE_USING_DATADIR
37 # define LILY_RELATIVE RELATIVE
40 # define RELATIVE MINGW_INFRINGES_ON_OUR_NAMESPACE_USING_RELATIVE
43 # define LILY_THIS THIS
46 # define THIS MINGW_INFRINGES_ON_OUR_NAMESPACE_USING_THIS
48 //#include <winsock2.h>
50 #if defined (__MINGW32__) && !defined (STATIC)
58 # define CHAR LILY_CHAR
63 # define CONTEXT LILY_CONTEXT
69 # define DATADIR LILY_DATADIR
75 # define RELATIVE LILY_RELATIVE
80 # define THIS LILY_THIS
83 #endif /* __MINGW__ */
85 #endif /* MINGW_COMPATIBILITY_HH */