Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit75c9b0a

Browse files
authored
Merge pull request#30220 from DWesl/python-h-first
BUG: Include python-including headers first in src/ft2font.{cpp,h}
2 parentse36bffb +ac863bc commit75c9b0a

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

‎src/ft2font.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
/* -*- mode: c++; c-basic-offset: 4 -*-*/
22

3+
#include"ft2font.h"
4+
#include"mplutils.h"
5+
36
#include<algorithm>
47
#include<cstdio>
58
#include<iterator>
@@ -9,9 +12,6 @@
912
#include<string>
1013
#include<vector>
1114

12-
#include"ft2font.h"
13-
#include"mplutils.h"
14-
1515
#ifndef M_PI
1616
#defineM_PI3.14159265358979323846264338328
1717
#endif

‎src/ft2font.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
#ifndef MPL_FT2FONT_H
77
#defineMPL_FT2FONT_H
88

9+
#include<pybind11/pybind11.h>
10+
#include<pybind11/numpy.h>
11+
912
#include<set>
1013
#include<string>
1114
#include<string_view>
@@ -22,8 +25,6 @@ extern "C" {
2225
#include FT_TRUETYPE_TABLES_H
2326
}
2427

25-
#include<pybind11/pybind11.h>
26-
#include<pybind11/numpy.h>
2728
namespacepy= pybind11;
2829

2930
// By definition, FT_FIXED as 2 16bit values stored in a single long.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp