aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTianjiao Yin <ytj000@gmail.com>2022-02-07 00:48:05 -0800
committerGreg Hudson <ghudson@mit.edu>2022-03-02 17:19:32 -0500
commit922592d3f57c831a2d539ff9b643953b56e6c515 (patch)
treeddfe06dbbeb6c9b7152827098bcc7cfb15018ffa
parentf5581b25d0476ec02c87e89b1211e8fd7659a57a (diff)
downloadkrb5-922592d3f57c831a2d539ff9b643953b56e6c515.zip
krb5-922592d3f57c831a2d539ff9b643953b56e6c515.tar.gz
krb5-922592d3f57c831a2d539ff9b643953b56e6c515.tar.bz2
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)
-rw-r--r--src/include/gssrpc/types.hin4
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