~ubuntu-branches/ubuntu/trusty/grub2/trusty

« back to all changes in this revision

Viewing changes to grub-core/gnulib/strings.in.h

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2014-01-16 15:18:04 UTC
  • mfrom: (17.6.38 experimental)
  • Revision ID: package-import@ubuntu.com-20140116151804-3foouk7fpqcq3sxx
Tags: 2.02~beta2-2
* Convert patch handling to git-dpm.
* Add bi-endian support to ELF parser (Tomohiro B Berry).
* Adjust restore_mkdevicemap.patch to mark get_kfreebsd_version as static,
  to appease "gcc -Werror=missing-prototypes".
* Cherry-pick from upstream:
  - Change grub-macbless' manual page section to 8.
* Install grub-glue-efi, grub-macbless, grub-render-label, and
  grub-syslinux2cfg.
* grub-shell: Pass -no-pad to xorriso when building floppy images.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* A substitute <strings.h>.
2
2
 
3
 
   Copyright (C) 2007-2010 Free Software Foundation, Inc.
 
3
   Copyright (C) 2007-2013 Free Software Foundation, Inc.
4
4
 
5
5
   This program is free software; you can redistribute it and/or modify
6
6
   it under the terms of the GNU General Public License as published by
13
13
   GNU General Public License for more details.
14
14
 
15
15
   You should have received a copy of the GNU General Public License
16
 
   along with this program; if not, write to the Free Software Foundation,
17
 
   Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
 
16
   along with this program; if not, see <http://www.gnu.org/licenses/>.  */
18
17
 
19
 
#ifndef _GL_STRINGS_H
 
18
#ifndef _@GUARD_PREFIX@_STRINGS_H
20
19
 
21
20
#if __GNUC__ >= 3
22
21
@PRAGMA_SYSTEM_HEADER@
23
22
#endif
 
23
@PRAGMA_COLUMNS@
 
24
 
 
25
/* Minix 3.1.8 has a bug: <sys/types.h> must be included before <strings.h>.
 
26
   But avoid namespace pollution on glibc systems.  */
 
27
#if defined __minix && !defined __GLIBC__
 
28
# include <sys/types.h>
 
29
#endif
24
30
 
25
31
/* The include_next requires a split double-inclusion guard.  */
26
 
#@INCLUDE_NEXT@ @NEXT_STRINGS_H@
27
 
 
28
 
#ifndef _GL_STRINGS_H
29
 
#define _GL_STRINGS_H
30
 
 
 
32
#if @HAVE_STRINGS_H@
 
33
# @INCLUDE_NEXT@ @NEXT_STRINGS_H@
 
34
#endif
 
35
 
 
36
#ifndef _@GUARD_PREFIX@_STRINGS_H
 
37
#define _@GUARD_PREFIX@_STRINGS_H
 
38
 
 
39
#if ! @HAVE_DECL_STRNCASECMP@
 
40
/* Get size_t.  */
 
41
# include <stddef.h>
 
42
#endif
 
43
 
 
44
 
 
45
/* The definitions of _GL_FUNCDECL_RPL etc. are copied here.  */
31
46
 
32
47
/* The definition of _GL_ARG_NONNULL is copied here.  */
33
48
 
38
53
#endif
39
54
 
40
55
 
 
56
  /* Find the index of the least-significant set bit.  */
 
57
#if @GNULIB_FFS@
 
58
# if !@HAVE_FFS@
 
59
_GL_FUNCDECL_SYS (ffs, int, (int i));
 
60
# endif
 
61
_GL_CXXALIAS_SYS (ffs, int, (int i));
 
62
_GL_CXXALIASWARN (ffs);
 
63
#elif defined GNULIB_POSIXCHECK
 
64
# undef ffs
 
65
# if HAVE_RAW_DECL_FFS
 
66
_GL_WARN_ON_USE (ffs, "ffs is not portable - use the ffs module");
 
67
# endif
 
68
#endif
 
69
 
41
70
/* Compare strings S1 and S2, ignoring case, returning less than, equal to or
42
71
   greater than zero if S1 is lexicographically less than, equal to or greater
43
72
   than S2.
89
118
}
90
119
#endif
91
120
 
92
 
#endif /* _GL_STRING_H */
93
 
#endif /* _GL_STRING_H */
 
121
#endif /* _@GUARD_PREFIX@_STRING_H */
 
122
#endif /* _@GUARD_PREFIX@_STRING_H */