Subject: lib/6942: sys/param.h defines "MAX" and "MIN"
To: None <gnats-bugs@gnats.netbsd.org>
From: None <seebs@plethora.net>
List: netbsd-bugs
Date: 02/04/1999 18:16:35
>Number:         6942
>Category:       lib
>Synopsis:       sys/param.h defines "MAX" and "MIN"
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    lib-bug-people (Library Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Feb  4 16:20:00 1999
>Last-Modified:
>Originator:     Peter Seebach
>Organization:
>Release:        1.3.3
>Environment:
System: NetBSD binder.fleet.plethora.net 1.3.3 NetBSD 1.3.3 (BINDER) #0: Thu Jan 28 08:16:10 PST 1999 root@binder.fleet.plethora.net:/usr/src/sys/arch/i386/compile/BINDER i386

>Description:
<sys/param.h> provides definitions of "MAX" and "MIN".

This is wrong.

These macros are in user namespace, and some programs (e.g. "crossfire")
want to define them.

If we want to use these macros, we should hide them properly.

>How-To-Repeat:
#define MAX 23
#include <sys/param.h>

>Fix:
>Audit-Trail:
>Unformatted: