Move <errno> include outside the ARGPARSE_MODULE_USE_STD_MODULE

<errno> header exposes errno macro, which cannot be exported in C++ module. It must always included regardless of module usage.
This commit is contained in:
LEE KYOUNGHEON 2024-02-06 17:05:07 +09:00 committed by GitHub
parent 69dabd88a8
commit 873596b41d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -30,11 +30,12 @@ SOFTWARE.
*/ */
#pragma once #pragma once
#include <cerrno>
#ifndef ARGPARSE_MODULE_USE_STD_MODULE #ifndef ARGPARSE_MODULE_USE_STD_MODULE
#include <algorithm> #include <algorithm>
#include <any> #include <any>
#include <array> #include <array>
#include <cerrno>
#include <charconv> #include <charconv>
#include <cstdlib> #include <cstdlib>
#include <functional> #include <functional>