From 873596b41df665d0d77ae1174de75b10930f06f0 Mon Sep 17 00:00:00 2001 From: LEE KYOUNGHEON Date: Tue, 6 Feb 2024 17:05:07 +0900 Subject: [PATCH] Move include outside the ARGPARSE_MODULE_USE_STD_MODULE header exposes errno macro, which cannot be exported in C++ module. It must always included regardless of module usage. --- include/argparse/argparse.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/argparse/argparse.hpp b/include/argparse/argparse.hpp index c614b5e..ec06ba2 100644 --- a/include/argparse/argparse.hpp +++ b/include/argparse/argparse.hpp @@ -30,11 +30,12 @@ SOFTWARE. */ #pragma once +#include + #ifndef ARGPARSE_MODULE_USE_STD_MODULE #include #include #include -#include #include #include #include