From 0ab28ca4778c24a323110ee5579c93c23cd8116b Mon Sep 17 00:00:00 2001 From: Walt Karas Date: Thu, 16 Nov 2023 00:22:37 +0000 Subject: [PATCH] Add check in ts.h that language is C++, version 17 or later. --- include/ts/ts.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/ts/ts.h b/include/ts/ts.h index 0bbd3163602..33519470979 100644 --- a/include/ts/ts.h +++ b/include/ts/ts.h @@ -29,6 +29,10 @@ #pragma once +#if !defined(__cplusplus) || __cplusplus < 201703L +#error "Must compile ATS plugin code with C++ version 17 or later." +#endif + #include #include