Move smalloc.h to utility/
[alexxy/gromacs.git] / src / gromacs / utility / smalloc.c
similarity index 98%
rename from src/gromacs/gmxlib/smalloc.c
rename to src/gromacs/utility/smalloc.c
index 70c709b16c08a6e2306ef876f56e2df04c0d98da..13e782f1b58953205b36db9f1e8acba2ae8f8c53 100644 (file)
  * To help us fund GROMACS development, we humbly ask that you cite
  * the research papers on the package. Check out http://www.gromacs.org.
  */
+#include "gromacs/utility/smalloc.h"
+
 #ifdef HAVE_CONFIG_H
 #include <config.h>
 #endif
 
-/* This file is completely threadsafe - keep it that way! */
-
-#include "gromacs/utility/gmxmpi.h"
-
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include "gmx_fatal.h"
-#include "smalloc.h"
-#include "main.h"
+
 #ifdef WITH_DMALLOC
 #include <dmalloc.h>
 #endif
 
+#include "gromacs/legacyheaders/gmx_fatal.h"
+
+#ifdef PRINT_ALLOC_KB
+#include "gromacs/utility/gmxmpi.h"
+#endif
+
 #ifdef DEBUG
 #include "thread_mpi/threads.h"