autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

A macro to check for data type alignment


From: Peter Eisentraut
Subject: A macro to check for data type alignment
Date: Mon, 11 Feb 2002 22:32:06 -0500 (EST)

Since you asked for contribution of specific macros, I have picked out a
few macros from our project that could be of general applicability.  I'll
just show you the macro right now; if you want to have it I'll supply a
real patch and documentation updates.

Here is a macro that checks whether the gettimeofday() function takes only
1 argument (normal is 2, the second argument is the time zone).  This is
the case on some SVR4 systems.  If this is found to be the case, the macro
inserts of definition

#define gettimeofday(a,b) gettimeofday(a)

into config.h.  Thus gettimezone can be used consistently throughout the
code without changes.  (The use of the second argument is obsolete on
modern systems, so there are not real problems to be expected from
ignoring it.)

-- 
Peter Eisentraut   address@hidden

Attachment: gettimeofday.m4
Description: Macro


reply via email to

[Prev in Thread] Current Thread [Next in Thread]