~james-page/ubuntu/maverick/openldap/fix-666028

« back to all changes in this revision

Viewing changes to include/ac/string.h

  • Committer: Bazaar Package Importer
  • Author(s): Mathias Gug
  • Date: 2010-02-18 00:58:13 UTC
  • mto: This revision was merged to the branch mainline in revision 21.
  • Revision ID: james.westby@ubuntu.com-20100218005813-8ubmna7xsfo1f098
Tags: upstream-2.4.21
ImportĀ upstreamĀ versionĀ 2.4.21

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* Generic string.h */
2
 
/* $OpenLDAP: pkg/ldap/include/ac/string.h,v 1.51.2.4 2009/01/22 00:00:52 kurt Exp $ */
 
2
/* $OpenLDAP: pkg/ldap/include/ac/string.h,v 1.51.2.6 2009/11/20 22:13:43 quanah Exp $ */
3
3
/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
4
4
 *
5
5
 * Copyright 1998-2009 The OpenLDAP Foundation.
94
94
#define memcmp lutil_memcmp
95
95
#endif
96
96
 
 
97
void *(lutil_memrchr)(const void *b, int c, size_t n);
97
98
/* GNU extension (glibc >= 2.1.91), only declared when defined(_GNU_SOURCE) */
98
 
#ifndef HAVE_MEMRCHR
99
 
#undef memrchr
100
 
#define memrchr lutil_memrchr
 
99
#if defined(HAVE_MEMRCHR) && defined(_GNU_SOURCE)
 
100
#define lutil_memrchr(b, c, n) memrchr(b, c, n)
101
101
#endif /* ! HAVE_MEMRCHR */
102
 
void * memrchr(const void *b, int c, size_t len);
103
102
 
104
103
#define STRLENOF(s)     (sizeof(s)-1)
105
104