diff options
author | Gaetan Nadon <memsize@videotron.ca> | 2011-02-02 19:51:54 -0500 |
---|---|---|
committer | Gaetan Nadon <memsize@videotron.ca> | 2011-02-02 21:07:23 -0500 |
commit | 70ca0ef2cc0ec84308792a7b184e90c5cb358278 (patch) | |
tree | 309395d84aa467ce10fa15ac8e32893c6bf57d87 | |
parent | 9f57096dd0881651de3b710b182db59091e6f421 (diff) |
config: remove config test for snprintf
The macro HAS_SNPRINTF is hard coded to always be defined.
If it were not defined, Lower.c would include snprintf.c
which does not exist. Seems to be relics from IMakefile
Other modules are using snprintf unconditionally.
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Julien Cristau <jcristau@debian.org>
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
-rw-r--r-- | configure.ac | 17 | ||||
-rw-r--r-- | src/Lower.c | 7 |
2 files changed, 0 insertions, 24 deletions
diff --git a/configure.ac b/configure.ac index 9775463..880fc5a 100644 --- a/configure.ac +++ b/configure.ac @@ -31,23 +31,6 @@ PKG_CHECK_MODULES(XMUU, x11) # conversion routines for XTRANS_CONNECTION_FLAGS -# -# Assume that we have sprintf. If a system shows up -# that doesn't, we will deal with it at that point. -# -# The way to deal with it is: -# -# 1. Add a test for sprintf it here in configure.ac -# that sets or unsets HAS_SNPRINTF as appropriate -# -# 2. add a copy of xc/lib/misc/snprintf.c -# -# The source file in question is Lower.c -# - -AC_DEFINE(HAS_SNPRINTF, [], [Whether we have snprintf()]) -AC_SUBST(HAS_SNPRINTF) - # Allow checking code with lint, sparse, etc. XORG_WITH_LINT XORG_LINT_LIBRARY([Xmu]) diff --git a/src/Lower.c b/src/Lower.c index 4e44be1..7522cc1 100644 --- a/src/Lower.c +++ b/src/Lower.c @@ -33,13 +33,6 @@ in this Software without prior written authorization from The Open Group. #include <X11/Xmu/SysUtil.h> #include <stdio.h> - -#ifndef HAS_SNPRINTF -#undef SCOPE -#define SCOPE static -#include "snprintf.c" -#endif - #include <stdarg.h> /* |