20 Nov 2004

4:27 am General

libxklavier

Lazying around xmodmap support, I tightened the gcc options. Now I use “-Wall -Werror” which is ok. But “-ansi” makes me some trouble. No more strdup and snprintf – they are not standartized. Sure, good old #ifdef allows me to put their declarations into my headers – but thats sucks big time… Especially taking that snprintf is REALLY not avalable on some systems.

At the moment, I just declare these functions inside #ifdef (keeping the -ansi in Makefile.am) – but I’m afraid at the end of the day I’ll have to provide my own implementations. _XklStrdup and _XklSnprintf?.. 🙁

PS Do NOT ask me to use glib please. It is not standartized by fd.o yet.

PPS The code is not in CVS yet. Just in case if you are interested…

Leave a Comment

Your comment

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.