To work on both Windows and Unix, you have to include the inttypes.h header file and use that format string.