changeset 2819:12a38ef2400c

* include/wallclock/wallclock.inl: _simple_mkdate is used by RedBoot and possibly others, so don't make specific to SET_GET mode. (Suggested by Rene Nielsen).
author jlarmour
date Thu, 19 Feb 2009 01:07:33 +0000
parents 7894f6bee6e5
children 3616656e48ea
files packages/io/wallclock/current/ChangeLog packages/io/wallclock/current/include/wallclock/wallclock.inl
diffstat 2 files changed, 7 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/packages/io/wallclock/current/ChangeLog
+++ b/packages/io/wallclock/current/ChangeLog
@@ -1,3 +1,9 @@
+2009-02-19  Jonathan Larmour  <jifl@eCosCentric.com>
+
+	* include/wallclock/wallclock.inl: _simple_mkdate is used by RedBoot
+	and possibly others, so don't make specific to SET_GET mode.
+	(Suggested by Rene Nielsen).
+
 2009-02-04  Bart Veer  <bartv@ecoscentric.com>
 
 	* src/wallclock.cxx: switch to CYG_INIT_DEV_WALLCLOCK init
--- a/packages/io/wallclock/current/include/wallclock/wallclock.inl
+++ b/packages/io/wallclock/current/include/wallclock/wallclock.inl
@@ -11,7 +11,7 @@
 // ####ECOSGPLCOPYRIGHTBEGIN####                                            
 // -------------------------------------------                              
 // This file is part of eCos, the Embedded Configurable Operating System.   
-// Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
+// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2009 Free Software Foundation, Inc.
 //
 // eCos is free software; you can redistribute it and/or modify it under    
 // the terms of the GNU General Public License as published by the Free     
@@ -101,9 +101,6 @@ static time_t
     return secs;
 }
 
-#ifdef CYGSEM_WALLCLOCK_SET_GET_MODE
-
-
 static void
 _simple_mkdate(time_t time,
                cyg_uint32* year, cyg_uint32* mon,
@@ -135,8 +132,6 @@ static void
     *day = days+1;
 }
 
-#endif
-
 //-----------------------------------------------------------------------------
 // BCD helper macros
 #define TO_BCD(x) ((((x)/10)<<4) | ((x)%10))