kwo pushed a commit to branch master.

http://git.enlightenment.org/e16/e16.git/commit/?id=33991a6bf2e1afc42d31ec80c8b9da86cb9101be

commit 33991a6bf2e1afc42d31ec80c8b9da86cb9101be
Author: Kim Woelders <k...@woelders.dk>
Date:   Thu Jun 30 06:04:48 2016 +0200

    Drop incomplete HAVE_STDARG_H stuff.
---
 configure.ac   |  2 +-
 src/snprintf.c | 12 ------------
 src/util.h     |  4 ----
 3 files changed, 1 insertion(+), 17 deletions(-)

diff --git a/configure.ac b/configure.ac
index eeb701c..147efd1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -40,7 +40,7 @@ LT_INIT([dlopen])
 AC_PATH_X
 AC_PATH_XTRA
 
-AC_CHECK_HEADERS(alloca.h locale.h stdarg.h wctype.h)
+AC_CHECK_HEADERS(alloca.h locale.h wctype.h)
 
 AC_C_BIGENDIAN
 AC_C_CONST
diff --git a/src/snprintf.c b/src/snprintf.c
index 0f070d6..e94c315 100644
--- a/src/snprintf.c
+++ b/src/snprintf.c
@@ -82,21 +82,9 @@ Evsnprintf(char *str, size_t count, const char *fmt, va_list 
args)
    return (strlen(str));
 }
 
-#ifdef HAVE_STDARG_H
 int
 Esnprintf(char *str, size_t count, const char *fmt, ...)
-#else
-int
-Esnprintf(va_alist)
-     va_dcl
-#endif
 {
-#ifndef HAVE_STDARG_H
-   char               *str;
-   size_t              count;
-   char               *fmt;
-
-#endif
    VA_LOCAL_DECL;
 
    VA_START(fmt);
diff --git a/src/util.h b/src/util.h
index 9b02563..3f8ae3f 100644
--- a/src/util.h
+++ b/src/util.h
@@ -116,12 +116,8 @@ __EXPORT__ void __PRINTF__ Eprintf(const char *fmt, ...);
 int                 Evsnprintf(char *str, size_t count, const char *fmt,
                               va_list args);
 
-#ifdef HAVE_STDARG_H
 int                 Esnprintf(char *str, size_t count, const char *fmt, ...);
 
-#else
-int                 Esnprintf(va_alist);
-#endif
 #endif /* HAVE_SNPRINTF */
 
 #if USE_MODULES

-- 


Reply via email to