diff --git a/tools/build_qmckl_h.sh b/tools/build_qmckl_h.sh index 6365689..3ddeada 100755 --- a/tools/build_qmckl_h.sh +++ b/tools/build_qmckl_h.sh @@ -85,6 +85,10 @@ cat << EOF > ${OUTPUT} #ifndef __QMCKL_H__ #define __QMCKL_H__ +#ifdef __cplusplus +extern "C" { +#endif + #include #include #include @@ -100,6 +104,9 @@ do done cat << EOF >> ${OUTPUT} +#ifdef __cplusplus +} +#endif #endif EOF