Move some defines to gmxpre.h for thread-MPI
[alexxy/gromacs.git] / src / config.h.cmakein
index 32e4cf00417eed7dd4d539d55b3e1013cfd9d812..4dffa2952a5f61382eb1f66d7fc155b671c62bc0 100644 (file)
@@ -41,6 +41,9 @@
  *
  * \inlibraryapi
  */
+#ifndef GMX_CONFIG_H
+#define GMX_CONFIG_H
+
 #include "gromacs/utility/gmx_header_config.h"
 
 /* TODO: For now, disable Doxygen warnings from here */
 #cmakedefine TMPI_ATOMICS
 
 /* Define for busy wait option  */
+/* See gmxpre-config.h.cmakein for explanation for the #ifdef */
+#ifndef TMPI_WAIT_FOR_NO_ONE
 #cmakedefine TMPI_WAIT_FOR_NO_ONE
+#endif
 
 /* Define for copy buffer option */
 #cmakedefine TMPI_COPY_BUFFER
 #cmakedefine HAVE_ZLIB
 
 /*! \endcond */
+
+#endif