[2307] in Kerberos_V5_Development
[meeroh@MIT.EDU: __STDC__ stuff]
daemon@ATHENA.MIT.EDU (tytso@MIT.EDU)
Mon Mar 17 14:43:23 1997
Date: Mon, 17 Mar 1997 19:42:00 GMT
To: krbdev@MIT.EDU
From: tytso@MIT.EDU
Can anyone see a problem with the changes which Meeroh suggested? I'm
not a C++ expert here. I suspect it's a bad idea to just blindly wrap
*all of krb5.h in the 'extern "C"' declaration, especially since we may
#include system header files. On the other hand, putting them around
all of the function declarations in the krb5 header files might not be a
bad idea. Comments?
- Ted
------- Start of forwarded message -------
X-Sender: meeroh@po7.mit.edu
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Sat, 1 Mar 1997 16:46:11 -0500
To: pbh@MIT.EDU, mjv@MIT.EDU, tytso@MIT.EDU
From: Miro Jurisic <meeroh@MIT.EDU>
Subject: __STDC__ stuff
I talked to MW support and they pointed out that whether __STDC__ is
defined when I am compiling a C++ program is implementation dependent. I
think we should make the header files C++-savvy (although i realize this is
not exactly a top-priority problem) by adding
#ifdef __cplusplus
#extern "C" {
#endif
at the beginnings and
#ifdef __cplusplus
}
#endif
ath the ends, and also using
#if defined (__STDC__) || defined (__cplusplus)
instead of
#ifdef __STDC__
(Of course, I am assuming that the -content- of the header files is alseady
C++-savvy, which might or might not be true. You tell me...)
(By the way, the file that was problem is macsock.h, I don't know if there
are other references to __STDC__ elsewhere. If there aren't, then just
fixing the #ifdef will make the headers C++-compatible.)
meeroh
Miroslav Jurisic | meeroh@mit.edu | http://www.mit.edu/people/meeroh/
MIT Information Systems (Mac development) | Athena On-Line Consulting
Lt. Commander Meeroh Ambellus, TrekMUSH (ats.trekmush.org:1701)
Let's grep the hard disk and see if we can find any hits on "<unknown name>."
How do you propose we do that?
[...] we dump the entire contents of the hard disk to a Web page, register
it with AltaVista, and perform the search.
[_d e v e l o p_, Dec 96]
------- End of forwarded message -------