summaryrefslogtreecommitdiffstats
path: root/c++/test/tattr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'c++/test/tattr.cpp')
-rw-r--r--c++/test/tattr.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/c++/test/tattr.cpp b/c++/test/tattr.cpp
index a6fd8de..ede7e31 100644
--- a/c++/test/tattr.cpp
+++ b/c++/test/tattr.cpp
@@ -1200,8 +1200,10 @@ test_string_attr(void)
** test_attr(): Main attribute testing routine.
**
****************************************************************/
-void
-test_attr(void)
+#ifdef __cplusplus
+extern "C"
+#endif
+void test_attr(void)
{
// Output message about test being performed
MESSAGE(5, ("Testing Attributes\n"));