emacs-devel
[Top][All Lists]
Advanced

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

Re: Emacs does not compile anymore in win32 with msvc6


From: Andrew Innes
Subject: Re: Emacs does not compile anymore in win32 with msvc6
Date: 08 Oct 2001 23:44:56 +0100
User-agent: Gnus/5.0803 (Gnus v5.8.3) Emacs/20.7

On 08 Oct 2001 23:16:12 +0100, Jason Rumney <address@hidden> said:
>Sam Steingold <address@hidden> writes:
>
>>#if     !__STDC__
>>#ifndef _POSIX_
>>/* Non-ANSI names for compatibility */
>>#ifndef __cplusplus
>>#define max(a,b)    (((a) > (b)) ? (a) : (b))
>>#define min(a,b)    (((a) < (b)) ? (a) : (b))
>>#endif
>>--------------------------------
>>
>>windows.h does mention NOMINMAX in the comments, but stdlib.h ignores
>>it.
>
>But only if !__STDC__, which is not the case I think.
>
>dispextern.h includes w32gui.h, maybe that is where the undefine is
>coming from?

The other #undef min/max is in src/s/ms-w32.h.

I've fixed the three w32 .h files, and conditionally undef'd min/max
before they are (re)defined in lisp.h.

AndrewI




reply via email to

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