mirror of
https://github.com/KeqingMoe/argparse.git
synced 2025-07-04 15:14:39 +00:00
Merge pull request #326 from stripe2933/master
Fix for C++23 standard library module usage.
This commit is contained in:
commit
1b3abd9b92
@ -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>
|
||||||
|
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user