Also noted using ppc cross compiler ppc_8xx-gcc version 3.3.1.
This applies for TIMEZONE_OFFSET() as well as TIMEZONE().
The ## is intended to glue a macro argument to another token
to make a new token. This is not necessary here. Defining
TIMEZONE_OFFSET() to:
#define TIMEZONE_OFFSET(foo) foo->tm_gmtoff
is sufficient (similarly for TIMEZONE(foo)).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=630544
Also noted using ppc cross compiler ppc_8xx-gcc version 3.3.1.
This applies for TIMEZONE_OFFSET() as well as TIMEZONE().
The ## is intended to glue a macro argument to another token
to make a new token. This is not necessary here. Defining
TIMEZONE_OFFSET() to:
#define TIMEZONE_OFFSET(foo) foo->tm_gmtoff
is sufficient (similarly for TIMEZONE(foo)).