OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gdb-7.1/] [gdb/] [gnulib/] [wchar.in.h] - Diff between revs 834 and 842

Only display areas with differences | Details | Blame | View Log

Rev 834 Rev 842
/* A substitute for ISO C99 <wchar.h>, for platforms that have issues.
/* A substitute for ISO C99 <wchar.h>, for platforms that have issues.
 
 
   Copyright (C) 2007, 2009, 2010 Free Software Foundation, Inc.
   Copyright (C) 2007, 2009, 2010 Free Software Foundation, Inc.
 
 
   This program is free software; you can redistribute it and/or modify
   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; either version 3, or (at your option)
   the Free Software Foundation; either version 3, or (at your option)
   any later version.
   any later version.
 
 
   This program is distributed in the hope that it will be useful,
   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.
   GNU General Public License for more details.
 
 
   You should have received a copy of the GNU General Public License
   You should have received a copy of the GNU General Public License
   along with this program; if not, write to the Free Software Foundation,
   along with this program; if not, write to the Free Software Foundation,
   Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
   Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
 
 
/* Written by Eric Blake.  */
/* Written by Eric Blake.  */
 
 
/*
/*
 * ISO C 99 <wchar.h> for platforms that have issues.
 * ISO C 99 <wchar.h> for platforms that have issues.
 * <http://www.opengroup.org/susv3xbd/wchar.h.html>
 * <http://www.opengroup.org/susv3xbd/wchar.h.html>
 *
 *
 * For now, this just ensures proper prerequisite inclusion order and
 * For now, this just ensures proper prerequisite inclusion order and
 * the declaration of wcwidth().
 * the declaration of wcwidth().
 */
 */
 
 
#ifndef _GL_WCHAR_H
#ifndef _GL_WCHAR_H
 
 
/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
   <wchar.h>.
   <wchar.h>.
   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
   included before <wchar.h>.  */
   included before <wchar.h>.  */
#include <stddef.h>
#include <stddef.h>
#include <stdio.h>
#include <stdio.h>
#include <time.h>
#include <time.h>
 
 
/* Include the original <wchar.h> if it exists.
/* Include the original <wchar.h> if it exists.
   Some builds of uClibc lack it.  */
   Some builds of uClibc lack it.  */
/* The include_next requires a split double-inclusion guard.  */
/* The include_next requires a split double-inclusion guard.  */
#if @HAVE_WCHAR_H@
#if @HAVE_WCHAR_H@
# @INCLUDE_NEXT@ @NEXT_WCHAR_H@
# @INCLUDE_NEXT@ @NEXT_WCHAR_H@
#endif
#endif
 
 
#ifndef _GL_WCHAR_H
#ifndef _GL_WCHAR_H
#define _GL_WCHAR_H
#define _GL_WCHAR_H
 
 
/* The definition of GL_LINK_WARNING is copied here.  */
/* The definition of GL_LINK_WARNING is copied here.  */
 
 
#ifdef __cplusplus
#ifdef __cplusplus
extern "C" {
extern "C" {
#endif
#endif
 
 
 
 
/* Return the number of screen columns needed for WC.  */
/* Return the number of screen columns needed for WC.  */
#if @GNULIB_WCWIDTH@
#if @GNULIB_WCWIDTH@
# if @REPLACE_WCWIDTH@
# if @REPLACE_WCWIDTH@
#  undef wcwidth
#  undef wcwidth
#  define wcwidth rpl_wcwidth
#  define wcwidth rpl_wcwidth
extern int wcwidth (wchar_t);
extern int wcwidth (wchar_t);
# else
# else
#  if !defined wcwidth && !@HAVE_DECL_WCWIDTH@
#  if !defined wcwidth && !@HAVE_DECL_WCWIDTH@
/* wcwidth exists but is not declared.  */
/* wcwidth exists but is not declared.  */
extern int wcwidth (int /* actually wchar_t */);
extern int wcwidth (int /* actually wchar_t */);
#  endif
#  endif
# endif
# endif
#elif defined GNULIB_POSIXCHECK
#elif defined GNULIB_POSIXCHECK
# undef wcwidth
# undef wcwidth
# define wcwidth(w) \
# define wcwidth(w) \
    (GL_LINK_WARNING ("wcwidth is unportable - " \
    (GL_LINK_WARNING ("wcwidth is unportable - " \
                      "use gnulib module wcwidth for portability"), \
                      "use gnulib module wcwidth for portability"), \
     wcwidth (w))
     wcwidth (w))
#endif
#endif
 
 
 
 
#ifdef __cplusplus
#ifdef __cplusplus
}
}
#endif
#endif
 
 
#endif /* _GL_WCHAR_H */
#endif /* _GL_WCHAR_H */
#endif /* _GL_WCHAR_H */
#endif /* _GL_WCHAR_H */
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.