From 8b7b56b57b380e5bbbe72766f72202143d46ffc0 Mon Sep 17 00:00:00 2001 From: q-posev Date: Mon, 28 Feb 2022 22:28:11 +0100 Subject: [PATCH] Fix broken build Recent HPC-related additions break the current build (make) process. This is because the HPC-related functions are not wrapped in the preprocessor ifdef statement. --- org/qmckl_ao.org | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/org/qmckl_ao.org b/org/qmckl_ao.org index c821c67..a79549a 100644 --- a/org/qmckl_ao.org +++ b/org/qmckl_ao.org @@ -2664,10 +2664,13 @@ qmckl_exit_code qmckl_finalize_basis(qmckl_context context) { #+end_src #+begin_src c :comments org :tangle (eval h_private_func) :exports none +#ifdef HAVE_HPC qmckl_exit_code qmckl_finalize_basis_hpc (qmckl_context context); +#endif #+end_src #+begin_src c :comments org :tangle (eval c) :exports none +#ifdef HAVE_HPC qmckl_exit_code qmckl_finalize_basis_hpc (qmckl_context context) { qmckl_context_struct* const ctx = (qmckl_context_struct* const) context; @@ -2729,6 +2732,7 @@ qmckl_exit_code qmckl_finalize_basis_hpc (qmckl_context context) } return QMCKL_SUCCESS; } +#endif #+end_src