Fix dependencies on config.h for typedefs.h
[alexxy/gromacs.git] / src / gromacs / legacyheaders / vec.h
index e2d120d77518cc53ca6cdf98cd2d094c8a33ed1d..a14dc49dc90f77eb7e1d36c1cbba72adde3f3ea2 100644 (file)
    real trace(matrix m)                             = trace(m)
  */
 
+/* The file only depends on config.h for GMX_SOFTWARE_INVSQRT and
+   HAVE_*SQRT*. This is no problem with public headers because
+   it is OK if user code uses a different rsqrt implementation */
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include "types/simple.h"
 #include "../math/utilities.h"
 #include "typedefs.h"