|
From: | Vincent Trouilliez |
Subject: | Re: [avr-gcc-list] __DATE__ constant, any way to format it differently ? |
Date: | Thu, 29 Jan 2009 03:26:24 +0100 |
Steven Michalske <address@hidden> wrote: > you are assigning it to a string here but gcc sees an integer. > use this: > -DMY_DATE=\"`date %y%m%d`\" > > so that MY_DATE is defined as "090128" (a string) in your code > -DMY_DATE=`date %y%m%d` > gives you MY_DATE as 090128 (an integer) in your code. Thanks, that was it. -- Vince
[Prev in Thread] | Current Thread | [Next in Thread] |