#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
-#include "gmx_header_config.h"
+
#include <math.h>
#include <string.h>
#include <time.h>
#include <sys/time.h>
#endif
-
-#ifdef GMX_NATIVE_WINDOWS
-#include <direct.h>
-#include <io.h>
-#endif
-
#include "statutil.h"
#include "sysstuff.h"
#include "typedefs.h"
#include "txtdump.h"
#include "matio.h"
#include "eigio.h"
-#include "eigensolver.h"
#include "physics.h"
#include "gmx_ana.h"
#include "string2.h"
+#include "gromacs/linearalgebra/eigensolver.h"
+
/* Portable version of ctime_r implemented in src/gmxlib/string2.c, but we do not want it declared in public installed headers */
char *
gmx_ctime_r(const time_t *clock,char *buf, int n);
fprintf(out,"Covariance analysis log, written %s\n",timebuf);
fprintf(out,"Program: %s\n",argv[0]);
-#ifdef GMX_NATIVE_WINDOWS
- pcwd=_getcwd(str,STRLEN);
-#else
- pcwd=getcwd(str,STRLEN);
-#endif
- if(NULL==pcwd)
- {
- gmx_fatal(FARGS,"Current working directory is undefined");
- }
+ gmx_getcwd(str, STRLEN);
fprintf(out,"Working directory: %s\n\n",str);