Hey everybody,
I'm struggling with SDL finding the equavalent of this piece of code:
int curdirfd = open("./", O_RDONLY);
if (-1 == curdirfd) {
return false;
}
if (-1 == chdir(path.c_str())) {
return false;
}
fchdir(curdirfd);
close(curdirfd);
which results to these errors:
444: error: 'chdir' was not declared in this scope
447: error: 'fchdir' was not declared in this scope
448: error: 'close' was not declared in this scope
I tried fat.h's diropen but it won't find that either (possibly I'm following a very outdated tutorial).
Any help is appreciated.