parser: fix compilation for macOS

Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
Simon Rozman 2023-09-23 17:58:40 +02:00
parent 80eecac31a
commit 41d764eeef

View File

@ -52,6 +52,14 @@ ENUM_FLAG_OPERATOR(T,^) \
ENUM_FLAG_OPERATOR(T,&) \
enum class T : type
#ifndef s6_words
#ifdef __APPLE__
#define s6_words __u6_addr.__u6_addr16
#else
#error Unsupported platform
#endif
#endif
namespace stdex
{
namespace parser