]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Replace macros with typedefs in gssrpc types.h 1240/head
authorTianjiao Yin <ytj000@gmail.com>
Mon, 7 Feb 2022 08:48:05 +0000 (00:48 -0800)
committerGreg Hudson <ghudson@mit.edu>
Wed, 2 Mar 2022 22:19:32 +0000 (17:19 -0500)
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

index 4c4120c6f83db05d8e6fd9341d19702163cd852c..25901794e914d604a5f2780c3f9eb1dac35f4d4d 100644 (file)
@@ -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