2 * Copyright (C) 2013 Team XBMC
5 * This Program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2, or (at your option)
10 * This Program 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.
15 * You should have received a copy of the GNU General Public License
16 * along with XBMC; see the file COPYING. If not, see
17 * <http://www.gnu.org/licenses/>.
21 /** @file utils/uXstrings.h
22 * Declarations of std::u16string and std::u32string for systems without those declarations
28 #ifndef TARGET_WINDOWS
31 #endif // HAVE_CONFIG_H
33 #if !defined(HAVE_STD__U16STRING) || !defined(HAVE_STD__U32STRING)
34 #if defined(HAVE_STDINT_H)
36 #elif defined(HAVE_INTTYPES_H)
38 #endif // defined(HAVE_INTTYPES_H)
40 #ifndef HAVE_STD__U16STRING
42 typedef uint_least16_t char16_t;
43 #endif // HAVE_CHAR16_T
46 typedef basic_string<char16_t> u16string;
48 #endif // HAVE_STD__U16STRING
50 #ifndef HAVE_STD__U32STRING
52 typedef uint_least32_t char32_t;
53 #endif // HAVE_CHAR32_T
56 typedef basic_string<char32_t> u32string;
58 #endif // HAVE_STD__U32STRING
60 #endif // !defined(HAVE_STD__U16STRING) || !defined(HAVE_STD__U32STRING)
61 #endif // TARGET_WINDOWS