From 8c98ed4a5885d6ce69687ec7465f7dcb2d05c97c Mon Sep 17 00:00:00 2001 From: seflerZ Date: Wed, 17 Apr 2024 22:16:28 +0800 Subject: [PATCH] add conditional compilation annotations --- sesman/chansrv/input.h | 3 +++ sesman/chansrv/input_ibus.c | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/sesman/chansrv/input.h b/sesman/chansrv/input.h index 1062d886..dd18502a 100644 --- a/sesman/chansrv/input.h +++ b/sesman/chansrv/input.h @@ -16,6 +16,7 @@ * limitations under the License. * */ +#ifdef XRDP_IBUS #if !defined(INPUT_H) #define INPUT_H @@ -32,4 +33,6 @@ xrdp_input_unicode_init(); int xrdp_input_unicode_destory(); +#endif + #endif \ No newline at end of file diff --git a/sesman/chansrv/input_ibus.c b/sesman/chansrv/input_ibus.c index cffe0667..44dc4a70 100644 --- a/sesman/chansrv/input_ibus.c +++ b/sesman/chansrv/input_ibus.c @@ -17,6 +17,8 @@ * limitations under the License. */ +#ifdef XRDP_IBUS + #if defined(HAVE_CONFIG_H) #include #endif @@ -245,4 +247,6 @@ xrdp_input_unicode_init() } return 1; -} \ No newline at end of file +} + +#endif \ No newline at end of file