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: Michael Goffioul
Subject: MSVC compiler support [patch 39]: include <direct.h>
Date: Tue, 17 Oct 2006 22:13:32 +0200
User-agent: Thunderbird 1.5.0.7 (Windows/20060909)

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"

reply via email to

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