[31102] in CVS-changelog-for-Kerberos-V5

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

krb5 commit: Replace macros with typedefs in gssrpc types.h

daemon@ATHENA.MIT.EDU (Greg Hudson)
Wed Mar 2 17:50:06 2022

Date: Wed, 2 Mar 2022 17:48:43 -0500
From: Greg Hudson <ghudson@mit.edu>
Message-ID: <202203022248.222Mmhub028350@drugstore.mit.edu>
To: <cvs-krb5@mit.edu>
MIME-Version: 1.0
Reply-To: krbdev@mit.edu
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: cvs-krb5-bounces@mit.edu

https://github.com/krb5/krb5/commit/922592d3f57c831a2d539ff9b643953b56e6c515
commit 922592d3f57c831a2d539ff9b643953b56e6c515
Author: Tianjiao Yin <ytj000@gmail.com>
Date:   Mon Feb 7 00:48:05 2022 -0800

    Replace macros with typedefs in gssrpc types.h
    
    Defining bool_t and enum_t with the preprocessor conflicts with
    namespaced declarations in fbthrift's headers.  Use typedefs to avoid
    this conflict and for consistency with other Sun RPC implementations.
    
    [ghudson@mit.edu: clarified commit message]
    
    ticket: 9054 (new)

 src/include/gssrpc/types.hin |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/include/gssrpc/types.hin b/src/include/gssrpc/types.hin
index 4c4120c..2590179 100644
--- a/src/include/gssrpc/types.hin
+++ b/src/include/gssrpc/types.hin
@@ -95,8 +95,8 @@ typedef int32_t		rpc_inline_t;
 /* This is for rpc/netdb.h */
 @rpcent_define@
 
-#define	bool_t	int
-#define	enum_t	int
+typedef int bool_t;
+typedef int enum_t;
 #ifndef FALSE
 #	define	FALSE	(0)
 #endif
_______________________________________________
cvs-krb5 mailing list
cvs-krb5@mit.edu
https://mailman.mit.edu/mailman/listinfo/cvs-krb5

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