projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix standalone build.
[bertos.git]
/
drv
/
timer_posix.c
diff --git
a/drv/timer_posix.c
b/drv/timer_posix.c
index 9814dc245d3677e90cd419b2f86c7e49b0c93040..c97593c88335ee42afd3f79b541cb314de08f597 100755
(executable)
--- a/
drv/timer_posix.c
+++ b/
drv/timer_posix.c
@@
-14,6
+14,9
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.2 2006/01/16 03:30:21 bernie
+ *#* Make header C++ friendly.
+ *#*
*#* Revision 1.1 2005/11/27 03:58:18 bernie
*#* Add POSIX timer emulator.
*#*
*#* Revision 1.1 2005/11/27 03:58:18 bernie
*#* Add POSIX timer emulator.
*#*
@@
-34,7
+37,7
@@
void timer_isr(int);
/// HW dependent timer initialization.
void timer_isr(int);
/// HW dependent timer initialization.
-
extern "C"
static void timer_hw_init(void)
+
EXTERN_C
static void timer_hw_init(void)
{
struct sigaction sa;
memset(&sa, 0, sizeof(sa));
{
struct sigaction sa;
memset(&sa, 0, sizeof(sa));
@@
-55,7
+58,7
@@
extern "C" static void timer_hw_init(void)
setitimer(ITIMER_REAL, &itv, NULL);
}
setitimer(ITIMER_REAL, &itv, NULL);
}
-
extern "C"
INLINE hptime_t timer_hw_hpread(void)
+INLINE hptime_t timer_hw_hpread(void)
{
return hptime_get();
}
{
return hptime_get();
}