[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[patch] newlib long long printf for rtems



this trivial patch adds support for long long (%lld) formatting to
newlib's printf and friends when configured for RTEMS.  I do not have
commit priviliges, so somebody will have to check this in for me.

Wed Jan  3 12:20:00 PST 2001  Aaron J. Grier  <aaron at frye.com>
	* src/newlib/configure.host (*-*-rtems*): add printf long long
	support for RTEMS

--- src/newlib/configure.host.orig	Wed Jan  3 12:16:13 2001
+++ src/newlib/configure.host	Wed Jan  3 12:17:01 2001
@@ -337,7 +337,7 @@
 #
 #  NOTE: When newlib malloc uses a semaphore, RTEMS will switch to that.
   *-*-rtems*)
-	newlib_cflags="${newlib_cflags} -DHAVE_GETTIMEOFDAY -DMALLOC_PROVIDED -DEXIT_PROVIDED -DMISSING_SYSCALL_NAMES -DSIGNAL_PROVIDED -DREENTRANT_SYSCALLS_PROVIDED -DHAVE_OPENDIR -DNO_EXEC"
+	newlib_cflags="${newlib_cflags} -DHAVE_GETTIMEOFDAY -DMALLOC_PROVIDED -DEXIT_PROVIDED -DMISSING_SYSCALL_NAMES -DSIGNAL_PROVIDED -DREENTRANT_SYSCALLS_PROVIDED -DHAVE_OPENDIR -DNO_EXEC -DWANT_PRINTF_LONG_LONG"
 	;;
 # VxWorks supplies its own version of malloc, and the newlib one
 # doesn't work because VxWorks does not have sbrk.

-- 
  Aaron J. Grier   |    Frye Electronics, Tigard, OR   |   aaron at frye.com