commit e608194a1f4729182f9f1f5ae76650110d021a2c from: Martin Pieuchot date: Wed Mar 18 15:42:00 2020 UTC Remove __linux__ shim commit - fde8723a2d86843b5db46beb243f76971f2cb4fa commit + e608194a1f4729182f9f1f5ae76650110d021a2c blob - da98e7d7fd329d2fa59d5fc429888c9a6d5307fc blob + 646813b328ce845ed8ffa72ca9406c2ab97b3bf3 --- arraylist.h +++ arraylist.h @@ -20,22 +20,6 @@ #pragma once -#ifdef __linux__ -/* stupid shims to compile and test on linux */ -#include -static inline void *reallocarray(void *buf, size_t n, size_t member_size) -{ - return realloc(buf, n * member_size); -} -static inline void *recallocarray(void *buf, size_t oldn, size_t n, size_t member_size) -{ - buf = reallocarray(buf, n, member_size); - bzero(((char*)buf) + (oldn * member_size), (n - oldn) * member_size); - return buf; -} -#endif - - /* Usage: * * ARRAYLIST_HEAD(head_type, any_type) list; blob - dadb98385c1d5f515757d7513358fd847108f429 blob + a11759c256a6277e124fda19a1a29e177f8c21cc --- diff.c +++ diff.c @@ -31,17 +31,6 @@ #include "diff_main.h" -#ifdef __linux__ -/* stupid shims to compile and test on linux */ -#define __dead - -static const char * -getprogname() -{ - return "diff"; -} -#endif - __dead void usage(void); int diffreg(char *, char *, int); char *mmapfile(const char *, struct stat *);