From 0bdaf8448305a467ff057e8fa65fb922b6c5bc2f Mon Sep 17 00:00:00 2001 From: aleph Date: Sun, 27 Jun 2004 15:26:17 +0000 Subject: [PATCH] Declaration fix for build with GCC 3.4 git-svn-id: https://src.develer.com/svnoss/bertos/trunk@43 38d2e660-2303-0410-9eaa-f027e97ec537 --- drv/timer.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drv/timer.h b/drv/timer.h index 15665a43..88d9f249 100755 --- a/drv/timer.h +++ b/drv/timer.h @@ -15,6 +15,9 @@ /* * $Log$ + * Revision 1.7 2004/06/27 15:26:17 aleph + * Declaration fix for build with GCC 3.4 + * * Revision 1.6 2004/06/07 18:10:06 aleph * Remove free pool of timers; use user-provided Timer structure instead * @@ -88,6 +91,8 @@ INLINE void timer_set_delay(Timer* timer, time_t delay) } +extern volatile time_t _clock; + /*! * Return the system tick counter (expressed in ms) * This function must disable interrupts on 8/16bit CPUs because the @@ -96,8 +101,6 @@ INLINE void timer_set_delay(Timer* timer, time_t delay) */ INLINE time_t timer_gettick(void) { - extern volatile time_t _clock; - time_t result; cpuflags_t flags; @@ -115,8 +118,6 @@ INLINE time_t timer_gettick(void) */ INLINE time_t timer_gettick_irq(void) { - extern volatile time_t _clock; - return _clock; } -- 2.25.1