Skip to content

Commit

Permalink
Merge pull request #326 from stripe2933/master
Browse files Browse the repository at this point in the history
Fix for C++23 standard library module usage.
  • Loading branch information
p-ranav authored Feb 7, 2024
2 parents 69dabd8 + f9057b8 commit 1b3abd9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/argparse/argparse.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,12 @@ SOFTWARE.
*/
#pragma once

#include <cerrno>

#ifndef ARGPARSE_MODULE_USE_STD_MODULE
#include <algorithm>
#include <any>
#include <array>
#include <cerrno>
#include <charconv>
#include <cstdlib>
#include <functional>
Expand Down
1 change: 1 addition & 0 deletions module/argparse.cppm
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export module argparse;

#ifdef ARGPARSE_MODULE_USE_STD_MODULE
import std;
import std.compat;

extern "C++" {
#include <argparse/argparse.hpp>
Expand Down

0 comments on commit 1b3abd9

Please sign in to comment.