octave-maintainers
[Top][All Lists]
Advanced

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

MSVC compilation patch: __WIN32__


From: Michael Goffioul
Subject: MSVC compilation patch: __WIN32__
Date: Sat, 28 Oct 2006 11:35:03 +0200
User-agent: Thunderbird 1.5.0.7 (Windows/20060909)

The attached patch defines __WIN32__ earlier in config.h This is required to
have correct definition of OCTAVE_HAVE_WINDOWS_FILESYSTEM.

Michael.

Index: configure.in
===================================================================
RCS file: /cvs/octave/configure.in,v
retrieving revision 1.540
diff -c -r1.540 configure.in
*** configure.in        28 Oct 2006 03:06:32 -0000      1.540
--- configure.in        28 Oct 2006 09:14:45 -0000
***************
*** 1782,1787 ****
--- 1782,1791 ----
  ### Some things to add to the bottom of config.h.
  
  AH_BOTTOM([
+ #if defined (_MSC_VER)
+ #define __WIN32__
+ #endif
+ 
  #if defined (__GNUC__)
  #define GCC_ATTR_DEPRECATED __attribute__ ((__deprecated__))
  #define GCC_ATTR_NORETURN __attribute__ ((__noreturn__))
***************
*** 1889,1895 ****
  #endif
  
  #if defined (_MSC_VER)
- #define __WIN32__
  /* missing parameters in macros */
  #pragma warning (disable: 4003)
  /* missing implementations in template instantiation */
--- 1893,1898 ----

reply via email to

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