Skip to content

Commit caeab2d

Browse files
committed
[09/30/2022] 调整次序满足Windows开发环境
调整次序满足Windows开发环境
1 parent 7386656 commit caeab2d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,6 @@ Complete minimal example:
3838
#include <memory>
3939
#include <sstream>
4040

41-
#define PY_MAJOR_VERSION 3
42-
#include "matplotlibcpp.h"
43-
#define plt matplotlibcpp
44-
4541
std::string to_strip(const std::string &str,
4642
const std::string &whitespace = " \n\r\t\f\v") {
4743
size_t from = str.find_first_not_of(whitespace);
@@ -92,6 +88,11 @@ int main() {
9288

9389
return 0;
9490
}
91+
92+
#define PY_MAJOR_VERSION 3
93+
#include "matplotlibcpp.h"
94+
#define plt matplotlibcpp
95+
9596
```
9697
**source**: [minimal.cpp](https://github.com/SNSerHello/matplotlib-cpp/blob/master/examples/minimal.cpp)
9798

0 commit comments

Comments
 (0)