Blame gllib/unitypes.in.h

rpm-build 858c0f
/* Elementary types and macros for the GNU UniString library.
rpm-build 858c0f
   Copyright (C) 2002, 2005-2006, 2009-2017 Free Software Foundation, Inc.
rpm-build 858c0f
rpm-build 858c0f
   This program is free software: you can redistribute it and/or modify it
rpm-build 858c0f
   under the terms of the GNU General Public License as published
rpm-build 858c0f
   by the Free Software Foundation; either version 3 of the License, or
rpm-build 858c0f
   (at your option) any later version.
rpm-build 858c0f
rpm-build 858c0f
   This program is distributed in the hope that it will be useful,
rpm-build 858c0f
   but WITHOUT ANY WARRANTY; without even the implied warranty of
rpm-build 858c0f
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
rpm-build 858c0f
   General Public License for more details.
rpm-build 858c0f
rpm-build 858c0f
   You should have received a copy of the GNU General Public License
rpm-build 858c0f
   along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
rpm-build 858c0f
rpm-build 858c0f
#ifndef _UNITYPES_H
rpm-build 858c0f
#define _UNITYPES_H
rpm-build 858c0f
rpm-build 858c0f
/* Get uint8_t, uint16_t, uint32_t.  */
rpm-build 858c0f
#include <stdint.h>
rpm-build 858c0f
rpm-build 858c0f
/* Type representing a Unicode character.  */
rpm-build 858c0f
typedef uint32_t ucs4_t;
rpm-build 858c0f
rpm-build 858c0f
/* Attribute of a function whose result depends only on the arguments
rpm-build 858c0f
   (not pointers!) and which has no side effects.  */
rpm-build 858c0f
#ifndef _UC_ATTRIBUTE_CONST
rpm-build 858c0f
# if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
rpm-build 858c0f
#  define _UC_ATTRIBUTE_CONST __attribute__ ((__const__))
rpm-build 858c0f
# else
rpm-build 858c0f
#  define _UC_ATTRIBUTE_CONST
rpm-build 858c0f
# endif
rpm-build 858c0f
#endif
rpm-build 858c0f
rpm-build 858c0f
/* Attribute of a function whose result depends only on the arguments
rpm-build 858c0f
   (possibly pointers) and global memory, and which has no side effects.  */
rpm-build 858c0f
#ifndef _UC_ATTRIBUTE_PURE
rpm-build 858c0f
# if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 96)
rpm-build 858c0f
#  define _UC_ATTRIBUTE_PURE __attribute__ ((__pure__))
rpm-build 858c0f
# else
rpm-build 858c0f
#  define _UC_ATTRIBUTE_PURE
rpm-build 858c0f
# endif
rpm-build 858c0f
#endif
rpm-build 858c0f
rpm-build 858c0f
#endif /* _UNITYPES_H */