From 7a1249cd997b20a44a632b469dacaf2b6d0f7b71 Mon Sep 17 00:00:00 2001 From: "W. Eric Norum" Date: Thu, 16 Sep 2004 14:04:21 +0000 Subject: [PATCH] Allow calls from RTEMS test harness. --- src/libCom/test/epicsThreadPrivateTest.cpp | 2 +- src/libCom/test/epicsThreadPrivateTestMain.cpp | 2 +- src/libCom/test/epicsTimerTest.cpp | 2 +- src/libCom/test/epicsTimerTestMain.cpp | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/libCom/test/epicsThreadPrivateTest.cpp b/src/libCom/test/epicsThreadPrivateTest.cpp index 5b468a92b..5442b041c 100644 --- a/src/libCom/test/epicsThreadPrivateTest.cpp +++ b/src/libCom/test/epicsThreadPrivateTest.cpp @@ -58,7 +58,7 @@ inline void callItTenTimesSquared () callItTenTimes (); } -void epicsThreadPrivateTest () +extern "C" void epicsThreadPrivateTest () { static bool var; priv.set ( &var ); diff --git a/src/libCom/test/epicsThreadPrivateTestMain.cpp b/src/libCom/test/epicsThreadPrivateTestMain.cpp index 6c7992dab..1d04f70f6 100644 --- a/src/libCom/test/epicsThreadPrivateTestMain.cpp +++ b/src/libCom/test/epicsThreadPrivateTestMain.cpp @@ -12,7 +12,7 @@ /* Author: Jeff Hill Date: March 28 2001 */ -void epicsThreadPrivateTest (); +extern "C" void epicsThreadPrivateTest (); int main () { diff --git a/src/libCom/test/epicsTimerTest.cpp b/src/libCom/test/epicsTimerTest.cpp index 404dd385d..3572cdd5d 100644 --- a/src/libCom/test/epicsTimerTest.cpp +++ b/src/libCom/test/epicsTimerTest.cpp @@ -347,7 +347,7 @@ void testPeriodic () queue.release (); } -void epicsTimerTest () +extern "C" void epicsTimerTest () { testExpireDestroy (); testAccuracy (); diff --git a/src/libCom/test/epicsTimerTestMain.cpp b/src/libCom/test/epicsTimerTestMain.cpp index 25c67cabd..b9265cd56 100644 --- a/src/libCom/test/epicsTimerTestMain.cpp +++ b/src/libCom/test/epicsTimerTestMain.cpp @@ -17,7 +17,7 @@ * */ -void epicsTimerTest ( void ); +extern "C" void epicsTimerTest ( void ); int main ( int /* argc */, char /* *argv[] */ ) {