X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f Date: Tue, 21 Nov 2006 11:23:26 -0500 Message-Id: <200611211623.kALGNQPQ023619@envy.delorie.com> From: DJ Delorie To: djgpp AT delorie DOT com In-reply-to: <4562f5df$0$49206$14726298@news.sunsite.dk> (message from Mark Carter on Tue, 21 Nov 2006 12:49:33 +0000) Subject: Re: make djgpp predefined variables, and some sundry questions References: <4562f5df$0$49206$14726298 AT news DOT sunsite DOT dk> Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > It's no longer a pressing issue, but a question worth asking anyway: > what DJGPP-relevant variables are predefined by make? If you mean #defines, you can use __DJGPP__ to detect that you're using DJGPP, or __GNUC__ for gcc in general. You can loko for the ${DJGPP} environment variable being set within make if you need to detect it there. Or check MAKE_VERSION, or look for ${CC} being gcc. > Also, a bit lazy, I know, but are there any libraries available for > processing files one line at a time, The C library does that. Use fgets(). > and is there a date/time library > for calculating the day of the week, Likewise, use mktime() and localtime() > and other such useful calendar functions? localtime() again.