summaryrefslogtreecommitdiffstats
path: root/c++/test/th5s.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'c++/test/th5s.cpp')
-rw-r--r--c++/test/th5s.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/c++/test/th5s.cpp b/c++/test/th5s.cpp
index 8ae34a6..9c49105 100644
--- a/c++/test/th5s.cpp
+++ b/c++/test/th5s.cpp
@@ -591,8 +591,10 @@ test_h5s_compound_scalar_read(void)
* Modifications:
*-------------------------------------------------------------------------
*/
-void
-test_h5s(void)
+#ifdef __cplusplus
+extern "C"
+#endif
+void test_h5s(void)
{
// Output message about test being performed
MESSAGE(5, ("Testing Dataspaces\n"));