mirror of
https://github.com/microsoft/GSL.git
synced 2024-11-03 17:56:43 -05:00
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.
This commit is contained in:
parent
9939d5889b
commit
b213c89700
@ -87,6 +87,10 @@
|
|||||||
#define byte_may_alias
|
#define byte_may_alias
|
||||||
#endif // defined __clang__ || defined __GNUC__
|
#endif // defined __clang__ || defined __GNUC__
|
||||||
|
|
||||||
|
#if GSL_USE_STD_BYTE
|
||||||
|
#include <cstddef>
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace gsl
|
namespace gsl
|
||||||
{
|
{
|
||||||
#if GSL_USE_STD_BYTE
|
#if GSL_USE_STD_BYTE
|
||||||
|
Loading…
Reference in New Issue
Block a user