So, someone recently submitted some bug fixes to my project, and they also included this:
#ifdef _MSC_VER
#ifndef PATH_MAX
#define PATH_MAX _MAX_PATH
#endif
#define realpath(N,R) _fullpath((R),(N),_MAX_PATH)
#endif
The problem is I'm using Code::Blocks with MinGW, so when I try to compile, it says that realpath() isn't defined at all. The submitter didn't provide any alternative, and when I try to search for realpath without MSVC, all I get is using realpath with MSVC. Does anyone have something I can use with MinGW instead?