Enlightenment CVS committal

Author  : kwo
Project : e16
Module  : epplets

Dir     : e16/epplets/api


Modified Files:
        Makefile.am epplet.h.in 


Log Message:
Use libc snprintf if available.

===================================================================
RCS file: /cvs/e/e16/epplets/api/Makefile.am,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -3 -r1.11 -r1.12
--- Makefile.am 13 Apr 2006 08:26:31 -0000      1.11
+++ Makefile.am 18 Mar 2007 22:29:36 -0000      1.12
@@ -1,14 +1,18 @@
-# $Id: Makefile.am,v 1.11 2006/04/13 08:26:31 kwo Exp $
+# $Id: Makefile.am,v 1.12 2007/03/18 22:29:36 kwo Exp $
+
+if BUILD_SNPRINTF
+SRCS_SNPRINTF = snprintf.c
+endif
 
 lib_LTLIBRARIES = libepplet.la
 
 include_HEADERS = epplet.h
-libepplet_la_SOURCES = epplet.c snprintf.c
+libepplet_la_SOURCES = epplet.c $(SRCS_SNPRINTF)
 libepplet_la_DEPENDENCIES = $(top_builddir)/config.h epplet.h
-libepplet_la_LDFLAGS = -version-info 1:0:0
+libepplet_la_LDFLAGS = -version-info 2:0:0
 
 INCLUDES = -I$(top_srcdir) $(X_CFLAGS) -DEROOT=\"@[EMAIL PROTECTED]"
 
 LDADD = -L$(libdir) -L$(prefix)/lib $(LIBS) $(X_LIBS)
 
-EXTRA_DIST = epplet.h.in
+EXTRA_DIST = epplet.h.in snprintf.c
===================================================================
RCS file: /cvs/e/e16/epplets/api/epplet.h.in,v
retrieving revision 1.58
retrieving revision 1.59
diff -u -3 -r1.58 -r1.59
--- epplet.h.in 18 Mar 2007 04:49:48 -0000      1.58
+++ epplet.h.in 18 Mar 2007 22:29:36 -0000      1.59
@@ -41,18 +41,15 @@
 #define __sun__
 #endif
 
-#if defined(HAVE_VARARGS_H) && !defined(HAVE_STDARG_H)
-#include <varargs.h>
-int                 Evsnprintf(char *str, size_t count, const char *fmt, 
va_list args);
-int                 Esnprintf(va_alist);
-
+#define HAVE_SNPRINTF @HAVE_SNPRINTF@
+#if HAVE_SNPRINTF
+#define Evsnprintf vsnprintf
+#define Esnprintf snprintf
 #else
-/* If they don't have stdarg.h, they have bigger problems.... */
-#include <stdarg.h>
-int                 Evsnprintf(char *str, size_t count, const char *fmt, 
va_list args);
-int                 Esnprintf(char *str, size_t count, const char *fmt,...);
-
-#endif
+int                 Evsnprintf(char *str, size_t count, const char *fmt,
+                              va_list args);
+int                 Esnprintf(char *str, size_t count, const char *fmt, ...);
+#endif /* HAVE_SNPRINTF */
 
 /****************************************************************************/
 /* Data structures & primitives                                             */



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to