[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: MSVC compiler support [patch 39]: include <direct.h>
From: |
John W. Eaton |
Subject: |
Re: MSVC compiler support [patch 39]: include <direct.h> |
Date: |
Fri, 20 Oct 2006 14:30:17 -0400 |
On 18-Oct-2006, Michael Goffioul wrote:
| John W. Eaton a écrit :
| > On 17-Oct-2006, Michael Goffioul wrote:
| >
| > | Some code needs direct.h to be included
| >
| > Exactly what is the error if you don't include <direct.h> in these
| > files?
| >
|
| "Unknown identifiers". direct.h defines functions like rmdir, chdir,
| mkdir, getcwd...
POSIX systems declare rmdir, chdir, and getcwd in unistd.h. Perhaps
the replacement for unistd.h should include direct.h for MSVC?
POSIX systems declare mkdir in sys/stat.h. In Octave, all uses of
sys/stat.h go through libocave/statdefs.h, so maybe we could include
direct.h there for MSVC? I'd prefer to NOT do it this way though:
#if defined (_MSC_VER)
#include <direct.h>
#endif
but instead with some kind of feature test, so that we can write
something like
#if defined (DIRECT_H_DECLARES_MKDIR)
#include <direct.h>
#endif
jwe
- MSVC compiler support [patch 37]: popen/pclose, (continued)
- MSVC compiler support [patch 37]: popen/pclose, Michael Goffioul, 2006/10/17
- MSVC compiler support [patch 37]: popen/pclose, John W. Eaton, 2006/10/25
- Re: MSVC compiler support [patch 37]: popen/pclose, Michael Goffioul, 2006/10/26
- Re: MSVC compiler support [patch 37]: popen/pclose, Paul Kienzle, 2006/10/26
- Re: MSVC compiler support [patch 37]: popen/pclose, John W. Eaton, 2006/10/26
- MSVC compiler support [patch 38]: include <algorithm>, Michael Goffioul, 2006/10/17
- MSVC compiler support [patch 38]: include <algorithm>, John W. Eaton, 2006/10/17
- MSVC compiler support [patch 39]: include <direct.h>, Michael Goffioul, 2006/10/17
- MSVC compiler support [patch 39]: include <direct.h>, John W. Eaton, 2006/10/17
- Re: MSVC compiler support [patch 39]: include <direct.h>, Michael Goffioul, 2006/10/18
- Re: MSVC compiler support [patch 39]: include <direct.h>,
John W. Eaton <=
- Message not available
- Message not available
- Re: MSVC compiler support [patch 39]: include <direct.h>, Michael Goffioul, 2006/10/21
- MSVC compiler support [patch 40]: win32lib, Michael Goffioul, 2006/10/17
- MSVC compiler support [patch 40]: win32lib, John W. Eaton, 2006/10/26
- MSVC compiler support [patch 41]: "== void" preprocessor directive, Michael Goffioul, 2006/10/17
- MSVC compiler support [patch 41]: "== void" preprocessor directive, John W. Eaton, 2006/10/25
RE: Re: Compiling octave with MSVC, michael . goffioul, 2006/10/23
RE: Re: Compiling octave with MSVC, michael . goffioul, 2006/10/24