all repos — mgba @ 938c9e965d14e6867f165b3be3391b0c15484bf5

mGBA Game Boy Advance Emulator

Util: Fix build with strndup on some platforms
Jeffrey Pfau jeffrey@endrift.com
Sun, 16 Nov 2014 20:25:52 -0800
commit

938c9e965d14e6867f165b3be3391b0c15484bf5

parent

c19673ce40fe8783ecc70016877647a91a1c34ed

1 files changed, 4 insertions(+), 0 deletions(-)

jump to
M src/util/string.hsrc/util/string.h

@@ -3,7 +3,11 @@ #define UTIL_STRING_H

#include "util/common.h" +#ifndef strndup +// This is sometimes a macro char* strndup(const char* start, size_t len); +#endif + char* strnrstr(const char* restrict s1, const char* restrict s2, size_t len); #endif