summaryrefslogtreecommitdiffstats
path: root/c++/test/tfile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'c++/test/tfile.cpp')
-rw-r--r--c++/test/tfile.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/c++/test/tfile.cpp b/c++/test/tfile.cpp
index 13ed377..f3d9574 100644
--- a/c++/test/tfile.cpp
+++ b/c++/test/tfile.cpp
@@ -492,8 +492,10 @@ test_file_name()
*
*-------------------------------------------------------------------------
*/
-void
-test_file(void)
+#ifdef __cplusplus
+extern "C"
+#endif
+void test_file(void)
{
// Output message about test being performed
MESSAGE(5, ("Testing File I/O operations\n"));