Mercurial > octave
diff src/dirfns.cc @ 1355:94697d007075
[project @ 1995-09-05 20:04:15 by jwe]
author | jwe |
---|---|
date | Tue, 05 Sep 1995 20:07:21 +0000 |
parents | e4e4131b1648 |
children | dc9c01f66a19 |
line wrap: on
line diff
--- a/src/dirfns.cc Tue Sep 05 19:56:08 1995 +0000 +++ b/src/dirfns.cc Tue Sep 05 20:07:21 1995 +0000 @@ -44,44 +44,22 @@ #include <cstdlib> #include <cstring> -#include <sys/types.h> -#ifdef HAVE_UNISTD_H -#include <unistd.h> -#endif #include <strstream.h> -#include <sys/param.h> -// This mess suggested by the autoconf manual. -// unistd.h defines _POSIX_VERSION on POSIX.1 systems. -#if defined (HAVE_DIRENT_H) || defined (_POSIX_VERSION) -#include <dirent.h> -#define NLENGTH(dirent) (strlen((dirent)->d_name)) -#else -#define dirent direct -#define NLENGTH(dirent) ((dirent)->d_namlen) -#if defined (HAVE_SYS_NDIR_H) -#include <sys/ndir.h> -#endif -#if defined (HAVE_SYS_DIR_H) -#include <sys/dir.h> -#endif -#if defined (HAVE_NDIR_H) -#include <ndir.h> -#endif -#endif - +#include "defun.h" +#include "dirfns.h" +#include "error.h" +#include "oct-obj.h" +#include "octave.h" +#include "pager.h" +#include "pathlen.h" +#include "procstream.h" #include "statdefs.h" -#include "procstream.h" +#include "sysdep.h" +#include "sysdir.h" #include "tree-const.h" #include "tree-plot.h" -#include "oct-obj.h" -#include "sysdep.h" -#include "octave.h" -#include "dirfns.h" -#include "pager.h" -#include "error.h" #include "utils.h" -#include "defun.h" extern "C" { @@ -89,10 +67,6 @@ extern char *strerror (int); } -#ifndef MAXPATHLEN -#define MAXPATHLEN 1024 -#endif - // Temp storage for a path. static char tdir[MAXPATHLEN];