From 5c9707505b8fb9ab6051d31e402480a7f5359922 Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Tue, 2 Feb 2016 16:10:33 +0100 Subject: [PATCH] Fixed stdbool.h and stdint.h detection. When one of those headers is not detected the CMake variable is undefined. Using it for a #define did break things. --- winpr/include/winpr/wtypes.h.in | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/winpr/include/winpr/wtypes.h.in b/winpr/include/winpr/wtypes.h.in index ffa94cf..39d6486 100644 --- a/winpr/include/winpr/wtypes.h.in +++ b/winpr/include/winpr/wtypes.h.in @@ -21,9 +21,18 @@ #define WINPR_WTYPES_H /* Set by CMake during configuration. */ -#define WINPR_HAVE_STDINT_H @HAVE_STDINT_H@ +#if defined @HAVE_STDINT_H@ +#define WINPR_HAVE_STDINT_H 1 +#else +#define WINPR_HAVE_STDINT_H 0 +#endif + /* Set by CMake during configuration. */ -#define WINPR_HAVE_STDBOOL_H @HAVE_STDBOOL_H@ +#if defined @HAVE_STDBOOL_H@ +#define WINPR_HAVE_STDBOOL_H 1 +#else +#define WINPR_HAVE_STDBOOL_H 0 +#endif /* MSDN: Windows Data Types - http://msdn.microsoft.com/en-us/library/aa383751/ */ /* [MS-DTYP]: Windows Data Types - http://msdn.microsoft.com/en-us/library/cc230273/ */ -- 2.7.4