-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: recognized text may have special chars hurting json
- Loading branch information
lixungeng
committed
Nov 6, 2024
1 parent
2faebdc
commit de82245
Showing
4 changed files
with
38 additions
and
12 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
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 |
---|---|---|
@@ -1,12 +1,15 @@ | ||
#pragma once | ||
|
||
#ifndef USE_PYTHON | ||
#if __has_include(<Python.h>) | ||
#define USE_PYTHON 1 | ||
#define Py_LIMITED_API 0x03080000 | ||
|
||
// we dont have python310_d.lib, so temporarily disable debug mode | ||
#pragma push_macro("_DEBUG") | ||
#undef _DEBUG | ||
#include <Python.h> | ||
#pragma pop_macro("_DEBUG") | ||
#endif | ||
#endif | ||
|
||
#if USE_PYTHON+0 | ||
# define Py_LIMITED_API 0x03080000 | ||
# pragma push_macro("_DEBUG") | ||
# undef _DEBUG // we dont have python310_d.lib, so temporarily disable debug mode | ||
# include <Python.h> | ||
# pragma pop_macro("_DEBUG") | ||
#endif |
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