PageRenderTime 643ms CodeModel.GetById 640ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/xbmc/screensavers/rsxs-0.9/m4/wcwidth.m4

http://github.com/xbmc/xbmc
m4 | 26 lines | 15 code | 4 blank | 7 comment | 0 complexity | 23d50b54f6c19891b19f3de60bcc4613 MD5 | raw file
 1# wcwidth.m4 serial 3
 2dnl Copyright (C) 2006 Free Software Foundation, Inc.
 3dnl This file is free software; the Free Software Foundation
 4dnl gives unlimited permission to copy and/or distribute it,
 5dnl with or without modifications, as long as this notice is preserved.
 6
 7AC_DEFUN([gl_FUNC_WCWIDTH],
 8[
 9  dnl Persuade glibc <wchar.h> to declare wcwidth().
10  AC_REQUIRE([AC_GNU_SOURCE])
11
12  AC_REQUIRE([AC_C_INLINE])
13  AC_REQUIRE([gt_TYPE_WCHAR_T])
14
15  AC_CHECK_HEADERS_ONCE([wchar.h wctype.h])
16  AC_CHECK_FUNCS_ONCE([iswprint wcwidth])
17
18  AC_CHECK_DECLS([wcwidth], [], [], [
19/* AIX 3.2.5 declares wcwidth in <string.h>. */
20#if HAVE_STRING_H
21# include <string.h>
22#endif
23#if HAVE_WCHAR_H
24# include <wchar.h>
25#endif
26])])