~ubuntu-branches/ubuntu/precise/dulwich/precise-security

« back to all changes in this revision

Viewing changes to dulwich/_objects.c

  • Committer: Bazaar Package Importer
  • Author(s): Jelmer Vernooij
  • Date: 2011-08-07 15:03:44 UTC
  • mto: This revision was merged to the branch mainline in revision 25.
  • Revision ID: james.westby@ubuntu.com-20110807150344-94xw3o3hnh47y1m8
Tags: upstream-0.8.0
ImportĀ upstreamĀ versionĀ 0.8.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#include <stdlib.h>
22
22
#include <sys/stat.h>
23
23
 
 
24
#if defined(__APPLE__)
 
25
#include <Availability.h>
 
26
#endif
 
27
 
24
28
#if (PY_VERSION_HEX < 0x02050000)
25
29
typedef int Py_ssize_t;
26
30
#endif
27
31
 
28
 
#if defined(__MINGW32_VERSION) || defined(__APPLE__)
 
32
#if defined(__MINGW32_VERSION) || (defined(__APPLE__) && __MAC_OS_X_VERSION_MIN_REQUIRED < 1070)
29
33
size_t strnlen(char *text, size_t maxlen)
30
34
{
31
35
        const char *last = memchr(text, '\0', maxlen);