Skip to content

Commit e3c5092

Browse files
committed
Remove useless fragments
1 parent 106df1b commit e3c5092

File tree

3 files changed

+6
-10
lines changed

3 files changed

+6
-10
lines changed

Lib/fortran/exception.i

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,13 @@ SWIGEXPORT const char* SWIG_FORTRAN_ERROR_STR() {
104104
#ifdef __cplusplus
105105

106106
%fragment("<string>");
107-
%fragment("<cctype>");
108107
%fragment("<stdexcept>");
109108

110109
%insert("header") {
111110
extern "C" {
111+
112+
#include <cctype>
113+
112114
// Call this function before any new action
113115
SWIGEXPORT void SWIG_check_unhandled_exception_impl(const char* decl) {
114116
if (SWIG_FORTRAN_ERROR_INT != 0) {

Lib/fortran/std_pair.i

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
* std_pair.i
33
* ------------------------------------------------------------------------- */
44

5-
%fragment("<utility>");
5+
%{
6+
#include <utility>
7+
%}
68

79
namespace std {
810

Lib/swigfragments.swg

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,3 @@
8888
%fragment("<memory>", "header") %{
8989
#include <memory>
9090
%}
91-
92-
%fragment("<utility>", "header") %{
93-
#include <utility>
94-
%}
95-
96-
%fragment("<cctype>", "header") %{
97-
#include <cctype>
98-
%}

0 commit comments

Comments
 (0)