__AMIGADATE__

2 posts / 0 new
Last post
trixie
trixie's picture
Offline
Last seen: 6 months 3 weeks ago
Joined: 2011-02-03 13:58
__AMIGADATE__

How exactly would I #define __AMIGADATE__ for GCC to be used in the version string, i.e. the date format should be (dd.mm.yyyy)? Thanks.

gazelle
gazelle's picture
Offline
Last seen: 1 year 9 months ago
Joined: 2011-04-13 12:52
If you're using a makefile

If you're using a makefile you could do it like this (not tested):

  1. # Amiga date command
  2. DATESTR := $(shell date lformat "%-d.%-m.%Y")
  3. # Unix date command
  4. # DATESTR := $(shell date +"%-d.%-m.%Y")
  5. ...
  6. CFLAGS = -D__AMIGADATE__=$(DATESTR)
Log in or register to post comments