diff options
author | Sam Bingner <sam@bingner.com> | 2018-09-30 22:50:49 -1000 |
---|---|---|
committer | Sam Bingner <sam@bingner.com> | 2019-05-27 14:24:09 -1000 |
commit | 014888d50dcedd8f2a7bcac53bc0ffc1fbb6555f (patch) | |
tree | 9078a1592efb2b78c6da195d1ba12bf6717d8809 /apt.h | |
parent | 6f6bdfbcbb3b5dc0a67e28cfe36523e0433ecbeb (diff) |
Make Cydia compatible back to iOS5 - unable to support older with this apt version due to newer apt requiring functions provided via libc++ on iOS
Diffstat (limited to 'apt.h')
-rw-r--r-- | apt.h | 30 |
1 files changed, 0 insertions, 30 deletions
@@ -1,30 +0,0 @@ -#ifndef APT_H -#define APT_H - -#include <unistd.h> - -template <typename Type_> -Type_ *memrchr(Type_ *data, int value, int size) { - for (int i = 0; i != size; ++i) - if (data[size - i - 1] == value) - return data + size - i - 1; - return 0; -} - -template <typename Type_> -static Type_ *strchrnul(Type_ *s, int c) { - while (*s != c && *s != '\0') - ++s; - return s; -} - -#define faccessat(arg0, arg1, arg2, arg3) \ - access(arg1, arg2) - -#if 0 -#include <syslog.h> -static unsigned nonce(0); -#define _trace() syslog(LOG_ERR, "_trace():%s[%u] #%u\n", __FILE__, __LINE__, ++nonce) -#endif - -#endif//APT_H |