# HG changeset patch # User jwe # Date 1162043815 0 # Node ID f3322fd3c9bbdd853335c71d12cfafe3fe0e1445 # Parent 483176585b84a3aa0dec58d33dabe90d45cc2691 [project @ 2006-10-28 13:56:55 by jwe] diff -r 483176585b84 -r f3322fd3c9bb ChangeLog --- a/ChangeLog Sat Oct 28 03:06:54 2006 +0000 +++ b/ChangeLog Sat Oct 28 13:56:55 2006 +0000 @@ -1,3 +1,8 @@ +2006-10-27 Michael Goffioul + + * configure.in (AH_BOTTOM): If using MSVC, define __WIN32__ before + other #ifdefs that use it. + 2006-10-27 John W. Eaton * configure.in (AH_BOTTOM): Move DLL defs to diff -r 483176585b84 -r f3322fd3c9bb configure.in --- a/configure.in Sat Oct 28 03:06:54 2006 +0000 +++ b/configure.in Sat Oct 28 13:56:55 2006 +0000 @@ -29,7 +29,7 @@ EXTERN_CXXFLAGS="$CXXFLAGS" AC_INIT -AC_REVISION($Revision: 1.540 $) +AC_REVISION($Revision: 1.541 $) AC_PREREQ(2.57) AC_CONFIG_SRCDIR([src/octave.cc]) AC_CONFIG_HEADER(config.h) @@ -1825,6 +1825,16 @@ typedef int sig_atomic_t; #endif +#if defined (_MSC_VER) +#define __WIN32__ +/* missing parameters in macros */ +#pragma warning (disable: 4003) +/* missing implementations in template instantiation */ +#pragma warning (disable: 4996) +/* deprecated function names (FIXME?) */ +#pragma warning (disable: 4661) +#endif + #if defined (__WIN32__) && ! defined (__CYGWIN__) #define OCTAVE_HAVE_WINDOWS_FILESYSTEM 1 #elif defined (__CYGWIN__) @@ -1888,16 +1898,6 @@ #define SIZEOF_OCTAVE_IDX_TYPE SIZEOF_INT #endif -#if defined (_MSC_VER) -#define __WIN32__ -/* missing parameters in macros */ -#pragma warning (disable: 4003) -/* missing implementations in template instantiation */ -#pragma warning (disable: 4996) -/* deprecated function names (FIXME?) */ -#pragma warning (disable: 4661) -#endif - #include "oct-dlldefs.h" #include "oct-types.h" ])