Sort all includes in src/gromacs
[alexxy/gromacs.git] / src / gromacs / gmxlib / viewit.c
index beace19aac008b226cafd2859334fa273ed7864f..c6a3a690bb47fe76e4111561750b200a6f258615 100644 (file)
  * the research papers on the package. Check out http://www.gromacs.org.
  */
 /* This file is completely threadsafe - keep it that way! */
-#include "viewit.h"
+#include "gmxpre.h"
 
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
+#include "gromacs/legacyheaders/viewit.h"
+
+#include "config.h"
 
 #include <stdlib.h>
 #include <string.h>
 
-#include "oenv.h"
-#include "macros.h"
 #include "gromacs/fileio/filenm.h"
+#include "gromacs/legacyheaders/macros.h"
+#include "gromacs/legacyheaders/oenv.h"
 #include "gromacs/utility/cstringutil.h"
 #include "gromacs/utility/fatalerror.h"
 
@@ -97,7 +97,7 @@ void do_view(const output_env_t oenv, const char *fn, const char *opts)
                 case efXVG:
                     if (!(cmd = getenv(env)) )
                     {
-                        if (getenv("XMGR") )
+                        if (getenv("GMX_USE_XMGR") )
                         {
                             cmd = "xmgr";
                         }