diff options
author | James Peach <jpeach@samba.org> | 2006-01-31 01:51:31 +0000 |
---|---|---|
committer | James Peach <jpeach@samba.org> | 2006-01-31 01:51:31 +0000 |
commit | c9aa6ae8dea80f4320a6dc85676ce8a0990f1e7b (patch) | |
tree | feff6c99c80e5e680371a46e7196edf9dbd3d6f5 /source/include | |
parent | 56b50deacc0099fcac4f93ab246d7bdfbb8ec8c2 (diff) | |
download | samba-c9aa6ae8dea80f4320a6dc85676ce8a0990f1e7b.tar.gz samba-c9aa6ae8dea80f4320a6dc85676ce8a0990f1e7b.tar.xz samba-c9aa6ae8dea80f4320a6dc85676ce8a0990f1e7b.zip |
r13248: Revert revision 13071. It turns out that sys/param.h can be implicitly
included from other headers. In this case, undeffing MIN and MAX is a
really bad idea because the subsequent include of sys/param.h will do
nothing because of its include guards.
Diffstat (limited to 'source/include')
-rw-r--r-- | source/include/system/filesys.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/source/include/system/filesys.h b/source/include/system/filesys.h index b79ec33c1ae..e81eec13e9d 100644 --- a/source/include/system/filesys.h +++ b/source/include/system/filesys.h @@ -24,17 +24,6 @@ #include <sys/stat.h> #ifdef HAVE_SYS_PARAM_H -/* On (at least) IRIX and Linux, sys/param.h unconditionally defines the MAX - * and MIN macros. Since smb_macros.h might have already defined this, we - * choose to use the system versions if they are present. This avoids a MIPSPro - * compiler warning whenever this file is included. - */ -#if defined(HAVE_SYS_PARAM_H_MIN) && defined(MIN) -#undef MIN -#endif -#if defined(HAVE_SYS_PARAM_H_MAX) && defined(MAX) -#undef MAX -#endif #include <sys/param.h> #endif |