Merge pull request #326 from stripe2933/master

Fix for C++23 standard library module usage.
This commit is contained in:
Pranav 2024-02-06 21:23:27 -05:00 committed by GitHub
commit 1b3abd9b92
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

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>

View File

@ -39,6 +39,7 @@ export module argparse;
#ifdef ARGPARSE_MODULE_USE_STD_MODULE #ifdef ARGPARSE_MODULE_USE_STD_MODULE
import std; import std;
import std.compat;
extern "C++" { extern "C++" {
#include <argparse/argparse.hpp> #include <argparse/argparse.hpp>