2 libcore: library for basic data structures and algorithms.
3 Copyright (C) 2005 IPD Goos, Universit"at Karlsruhe, Germany
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
10 This library 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 GNU
13 Lesser General Public License for more details.
15 You should have received a copy of the GNU Lesser General Public
16 License along with this library; if not, write to the Free Software
17 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
22 * Central definitions for the libcore.
23 * @author Sebastian Hack
30 #if defined(__STD_VERSION__) && __STD_VERSION >= 199901L
34 /* ISO C99 Standard stuff */
36 #define LC_FUNCNAME __func__
37 #define LC_UNUSED(x) x
38 #define LC_LONGLONG long long
39 #define LC_LONGDOUBLE long double
41 /* definitions using GCC */
42 #elif defined(__GNUC__)
44 #define inline __inline__
45 #define LC_FUNCNAME __FUNCTION__
46 #define LC_UNUSED(x) x __attribute__((__unused__))
48 #ifdef __STRICT_ANSI__
49 #define LC_LONGLONG long
50 #define LC_LONGDOUBLE double
52 #define LC_LONGLONG long long
53 #define LC_LONGDOUBLE long double
56 #elif defined(_MSC_VER)
58 #define LC_FUNCNAME "<unknown>"
59 #define LC_UNUSED(x) x
60 #define LC_LONGLONG __int64
61 #define LC_LONGDOUBLE long double
63 /* disable warning: 'foo' was declared deprecated, use 'bla' instead */
64 /* of course MS had to make 'bla' incompatible to 'foo', so a simple */
65 /* define will not work :-((( */
66 #pragma warning( disable : 4996 )
69 #define snprintf _snprintf
73 typedef __int16 int16;
74 typedef __int32 int32;
75 typedef __int64 int64;
76 typedef unsigned __int16 uint16;
77 typedef unsigned __int32 uint32;
78 typedef unsigned __int64 uint64;
79 #endif /* _MSC_VER <= 1200 */
81 /* default definitions */
82 #else /* defined(_MSC_VER) */
85 #define LC_FUNCNAME "<unknown>"
87 #define LC_LONGLONG long
88 #define LC_LONGDOUBLE double
92 #endif /* _LC_CONFIG_H */