[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: MSVC compiler support [patch 16]: liboctave exported symbols
From: |
John W. Eaton |
Subject: |
RE: MSVC compiler support [patch 16]: liboctave exported symbols |
Date: |
Fri, 27 Oct 2006 08:42:07 -0400 |
On 27-Oct-2006, address@hidden wrote:
| > I applied this patch, except for the part of this section that
| > undefines min and max. Why is that needed here but not in any other
| > files that use min or max?
|
| The problem only occurs because some Windows header defines min and
| max as macros. oct-time.cc includes <windows.h> before oct-time.h; hence
| the compilation error.
OK, I see now that we have similar code in lo-utils.h. So I just
changed oct-time.cc to use
#if defined (OCTAVE_USE_WINDOWS_API)
#include <windows.h>
#undef min
#undef max
#endif
Thanks,
jwe