Explorar o código

Cope with strnlen() not existing on Mac.

dak180 %!s(int64=14) %!d(string=hai) anos
pai
achega
3e3ac24744
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      dulwich/_objects.c

+ 1 - 1
dulwich/_objects.c

@@ -25,7 +25,7 @@
 typedef int Py_ssize_t;
 #endif
 
-#ifdef __MINGW32_VERSION
+#if defined(__MINGW32_VERSION) || defined(__APPLE__)
 size_t strnlen(char *text, size_t maxlen)
 {
 	const char *last = memchr(text, '\0', maxlen);