diff --git a/src/input/input_ogg.cpp b/src/input/input_ogg.cpp index 033cc1d4..3962eb18 100644 --- a/src/input/input_ogg.cpp +++ b/src/input/input_ogg.cpp @@ -379,6 +379,19 @@ namespace Mist { return 0; } + #ifndef _GNU_SOURCE + void * memrchr(const void *s, int c, size_t n){ + const unsigned char *cp; + if (n != 0) { + cp = (unsigned char *)s + n; + do { + if (*(--cp) == (unsigned char)c) + return((void *)cp); + } while (--n != 0); + } + return((void *)0); + } + #endif void inputOGG::seek(int seekTime){ currentPositions.clear();