Page 1 of 1

Preprocessor __DATE__ directive produces an invalid date:

Posted: Wed Aug 22, 2007 1:14 pm
by dom
The following code exhibits the problem:

Code: Select all

#include <stdio.h>

main()
{
    printf("compiled at %s / %s\n)", __DATE__, __TIME__);   /* -> year is: "20:7" */
}
A fix has been applied to the preprocessor which should resolve this issue:

http://www.z88dk.org/forum/viewtopic.php?id=1506