diff options
author | Alan Coopersmith <Alan.Coopersmith@sun.com> | 2004-10-30 20:33:44 +0000 |
---|---|---|
committer | Alan Coopersmith <Alan.Coopersmith@sun.com> | 2004-10-30 20:33:44 +0000 |
commit | ca43036f8cdd456ebff29860fd514248b3699bcf (patch) | |
tree | 0c171a494549023b1482adfbbcad2581474e7e75 /ClockP.h | |
parent | 3f3b1fbe531e0c1ab3b74396bf4e78db861c8bbc (diff) |
Add -d flag for compilers like the Sun C compilers that produce dependencyxprint_packagertest_20041217_basexprint_packagertest_20041125_basesco_port_update-baseXORG-6_8_99_9XORG-6_8_99_8XORG-6_8_99_7XORG-6_8_99_6XORG-6_8_99_5XORG-6_8_99_4XORG-6_8_99_3XORG-6_8_99_2XORG-6_8_99_14XORG-6_8_99_13XORG-6_8_99_12XORG-6_8_99_11XORG-6_8_99_10XORG-6_8_99_1xprint_packagertest_20041217xprint_packagertest_20041125sco_port_update
lists themselves. To use with the Sun compilers, add to host.def: #
define UseCCMakeDepend YES # define DependFlags -cc $(CC) -d -xM (Sun
bug id #4245688 - fix by Alan Coopersmith)
Add Solaris to the platforms on which mprotect is run to set execute
permissions when necessary. (Sun bug id #6175128 - fix by Alan
Coopersmith)
Internationalize digital output (Sun bug id #4119396 - fix by Steve
Swales), add -bgpixmap option to set XPM file as background (originally
from STSF project version of xclock by Alan Coopersmith)
xc/programs/xmodmap/handle.c,pf.c xmodmap was printing line numbers which
are one too low in error messages (Xorg bugzilla #1739, Sun bug id
4637857 - fix by Sam Lau)
Diffstat (limited to 'ClockP.h')
-rw-r--r-- | ClockP.h | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -63,9 +63,14 @@ SOFTWARE. #endif #define SEG_BUFF_SIZE 128 +#ifdef NO_I18N #define ASCII_TIME_BUFLEN 32 /* big enough for 26 plus slop */ - #define STRFTIME_BUFF_SIZE 100 /* buffer for "strftime" option */ +#else +#define STRFTIME_BUFF_SIZE 256 /* should handle any locale */ +#endif + + /* New fields for the clock widget instance record */ typedef struct { @@ -105,7 +110,11 @@ typedef struct { XPoint *hour, *sec; struct tm otm ; XtIntervalId interval_id; - char prev_time_string[ASCII_TIME_BUFLEN]; + char prev_time_string[STRFTIME_BUFF_SIZE]; +#ifndef NO_I18N + XFontSet fontSet; /* font set for localized text */ + Boolean utf8; +#endif #ifdef XRENDER XftColor fg_color; XftColor hour_color; |