Preprocessor __DATE__ directive produces an invalid date:

Known bugs with 1.7
Post Reply
User avatar
dom
Well known member
Posts: 1194
Joined: Sun Jul 15, 2007 10:01 pm

Preprocessor __DATE__ directive produces an invalid date:

Post 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
Post Reply