-
Notifications
You must be signed in to change notification settings - Fork 727
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add support for C++20 module (and C++23 std module)
- Loading branch information
Showing
3 changed files
with
91 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
/** | ||
* pugixml parser - version 1.14 | ||
* -------------------------------------------------------- | ||
* Copyright (C) 2006-2024, by Arseny Kapoulkine (arseny.kapoulkine@gmail.com) | ||
* Report bugs and download new versions at https://pugixml.org/ | ||
* | ||
* This library is distributed under the MIT License. See notice at the end | ||
* of this file. | ||
* | ||
* This work is based on the pugxml parser, which is: | ||
* Copyright (C) 2003, by Kristen Wegner (kristen@tima.net) | ||
*/ | ||
|
||
module; | ||
|
||
#define PUGIXML_EXPORT_MODULE | ||
|
||
#include <pugiconfig.hpp> | ||
|
||
#ifndef PUGIXML_USE_STD_MODULE | ||
# include <string_view> | ||
# include <iterator> | ||
# include <istream> | ||
# include <ostream> | ||
# include <string> | ||
# include <new> | ||
# include <exception> | ||
#endif | ||
|
||
#include <stddef.h> | ||
#include <stdlib.h> | ||
#include <stdio.h> | ||
#include <string.h> | ||
#include <assert.h> | ||
#include <limits.h> | ||
#include <stdint.h> | ||
|
||
#ifdef PUGIXML_WCHAR_MODE | ||
# include <wchar.h> | ||
#endif | ||
|
||
#ifndef PUGIXML_NO_XPATH | ||
# include <math.h> | ||
# include <float.h> | ||
#endif | ||
|
||
#if defined(__linux__) || defined(__APPLE__) | ||
# include <sys/stat.h> | ||
#endif | ||
|
||
export module pugixml; | ||
|
||
#ifdef PUGIXML_USE_STD_MODULE | ||
import std.compat; | ||
#endif | ||
|
||
#define PUGIXML_MODULE_EXPORT export | ||
#if defined(__clang__) | ||
# pragma clang diagnostic push | ||
# pragma clang diagnostic ignored "-Winclude-angled-in-module-purview" | ||
#endif | ||
#include <pugixml.hpp> | ||
#if defined(__clang__) | ||
# pragma clang diagnostic pop | ||
#endif | ||
|
||
|
||
module :private; | ||
|
||
#define PUGIXML_SOURCE "pugixml.cpp" | ||
#include PUGIXML_SOURCE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters