octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

MSVC compiler support [patch 39]: include <direct.h>


From: John W. Eaton
Subject: MSVC compiler support [patch 39]: include <direct.h>
Date: Tue, 17 Oct 2006 22:36:28 -0400

On 17-Oct-2006, Michael Goffioul wrote:

| Some code needs direct.h to be included

| Index: liboctave/file-ops.cc
| ===================================================================
| RCS file: /cvs/octave/liboctave/file-ops.cc,v
| retrieving revision 1.41
| diff -p -c -r1.41 file-ops.cc
| *** liboctave/file-ops.cc     24 Apr 2006 19:13:07 -0000      1.41
| --- liboctave/file-ops.cc     17 Oct 2006 11:07:41 -0000
| *************** Software Foundation, Inc., 51 Franklin S
| *** 51,56 ****
| --- 51,60 ----
|   #include "statdefs.h"
|   #include "str-vec.h"
|   
| + #if defined(HAVE_DIRECT_H)
| + #include <direct.h>
| + #endif
| + 
|   #define NOT_SUPPORTED(nm) \
|     nm ": not supported on this system"
|   
| Index: liboctave/lo-sysdep.cc
| ===================================================================
| RCS file: /cvs/octave/liboctave/lo-sysdep.cc,v
| retrieving revision 1.8
| diff -p -c -r1.8 lo-sysdep.cc
| *** liboctave/lo-sysdep.cc    30 Jun 2006 18:19:42 -0000      1.8
| --- liboctave/lo-sysdep.cc    17 Oct 2006 11:07:42 -0000
| *************** Software Foundation, Inc., 51 Franklin S
| *** 35,40 ****
| --- 35,44 ----
|   #include <unistd.h>
|   #endif
|   
| + #if defined(HAVE_DIRECT_H)
| + #include <direct.h>
| + #endif
| + 
|   #include "file-ops.h"
|   #include "lo-error.h"
|   #include "pathlen.h"

Exactly what is the error if you don't include <direct.h> in these
files?

jwe


reply via email to

[Prev in Thread] Current Thread [Next in Thread]