From 70ca0ef2cc0ec84308792a7b184e90c5cb358278 Mon Sep 17 00:00:00 2001 From: Gaetan Nadon Date: Wed, 2 Feb 2011 19:51:54 -0500 Subject: 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 Reviewed-by: Julien Cristau Signed-off-by: Gaetan Nadon --- configure.ac | 17 ----------------- src/Lower.c | 7 ------- 2 files changed, 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 #include - -#ifndef HAS_SNPRINTF -#undef SCOPE -#define SCOPE static -#include "snprintf.c" -#endif - #include /* -- cgit v1.2.3