I wanna write a program that get the last modified date of a file. I wanna compile this code in windows, linux and mac ...
sys/stat.h is for linux only
I can't find a cross-platform library that do this! Should I use something like this:
#ifdef __APPLE__
#ifndef st_mtime
#define st_mtime st_mtimespec.tv_sec
#endif
#endif