From b213c8970093811db1006180b268f6290e09c4f4 Mon Sep 17 00:00:00 2001 From: Cristian Morales Vega Date: Fri, 8 Nov 2019 16:37:23 +0000 Subject: [PATCH] Add missing #include if built with GSL_USE_STD_BYTE=1 cstddef was being included to detect whether GSL_USE_STD_BYTE should be set to 0 or 1. But if the user provided GSL_USE_STD_BYTE no detection is required and the header was never included. --- include/gsl/gsl_byte | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/gsl/gsl_byte b/include/gsl/gsl_byte index c2fc572..9e68d0d 100644 --- a/include/gsl/gsl_byte +++ b/include/gsl/gsl_byte @@ -87,6 +87,10 @@ #define byte_may_alias #endif // defined __clang__ || defined __GNUC__ +#if GSL_USE_STD_BYTE +#include +#endif + namespace gsl { #if GSL_USE_STD_BYTE