[2251] in Kerberos-V5-bugs

home help back first fref pref prev next nref lref last post

krb5-beta7: NEAR, FAR not properly defined when header files

daemon@ATHENA.MIT.EDU (Jonathan I. Kamens)
Sun Sep 22 12:58:29 1996

Date: Sun, 22 Sep 1996 12:53:57 -0400
From: "Jonathan I. Kamens" <jik@annex-1-slip-jik.cam.ov.com>
To: krb5-bugs@MIT.EDU, kerberos@MIT.EDU

If I preprocess this file:

	#include <kerberosIV/krb.h>
	#include <com_err.h>
	#include <krb5.h>

	NEAR

The last line of the preprocessor output contains "NEAR".  If,
however, I swap <com_err.h> and <krb.h>, the last line of the
preprocessor output is (correctly) blank.

All of the preprocessor stuff in the various header files is so hairy
and disgusting that I had to spend quite a while just figuring out
this problem.  I assume there's someone at MIT who came up with the
idea of putting the same stuff in N different header files and who
understands how it's all supposed to work; that person will probably
be able to fix this problem far more quickly than I can, so I leave it
to him to come up with a patch.

  jik

home help back first fref pref prev next nref lref last post