Get working directory WITHOUT using direct.h

Has anyone seen a way to get the current working directory (or the directory the executable is in) that doesn't use direct.h?
The problem is that my group wants the code to compile the code with the following options (using MinGW g++.exe):
-Wall -Wextra -Werror -pedantic -pedantic-error

direct.h uses long long, which means that it doesn't conform to the C99 standards. Is there any workaround for this?
Sometimes, it's useful to check other forums.
http://www.daniweb.com/forums/showthread.php?t=104069

IMPORTANT LINK TO NOTE:
http://www.boost.org/doc/libs/1_38_0/libs/filesystem/doc/index.htm

-Albatross
Thanks, but unistd.h (or at least the version that we have) also doesn't compile under -pedantic, and we're trying to avoid using anything besides the STL.
It looks like we're just going to have to remove that option, and it will build properly
try to add -Wno-long-long

So yout compiler options should be

-Wall -Wextra -Werror -pedantic -pedantic-error -Wno-long-long
Thanks Denis, that fixed the annoyance!
Topic archived. No new replies allowed.