1/* Elementary types for the GNU UniString library. 2 Copyright (C) 2002, 2005 Free Software Foundation, Inc. 3 4 This program is free software; you can redistribute it and/or modify it 5 under the terms of the GNU Library General Public License as published 6 by the Free Software Foundation; either version 2, or (at your option) 7 any later version. 8 9 This program is distributed in the hope that it will be useful, 10 but WITHOUT ANY WARRANTY; without even the implied warranty of 11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 Library General Public License for more details. 13 14 You should have received a copy of the GNU Library General Public 15 License along with this program; if not, write to the Free Software 16 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 17 USA. */ 18 19#ifndef _UNITYPES_H 20#define _UNITYPES_H 21 22/* Get uint8_t, uint16_t, uint32_t. */ 23#include <stdint.h> 24 25/* Type representing a Unicode character. */ 26typedef uint32_t ucs4_t; 27 28/* Common macro, to avoid compilation errors when we use a GCC extension and 29 GCC is run in pedantic mode. */ 30#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 8) 31# define UC_GNUC_EXTENSION __extension__ 32#else 33# define UC_GNUC_EXTENSION 34#endif 35 36#endif /* _UNITYPES_H */ 37