added memrchr function for mac
This commit is contained in:
parent
2c17b7a1e7
commit
30866407e0
1 changed files with 13 additions and 0 deletions
|
@ -379,6 +379,19 @@ namespace Mist {
|
||||||
return 0;
|
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){
|
void inputOGG::seek(int seekTime){
|
||||||
currentPositions.clear();
|
currentPositions.clear();
|
||||||
|
|
Loading…
Add table
Reference in a new issue