支持msys2的编译#2661
Merged
Merged
Conversation
Contributor
Author
|
不知道会不会影响其他的编译方式。 |
| template<size_t N, typename... TR> | ||
| inline int myswprintf(wchar_t(&buf)[N], const wchar_t* fmt, TR... args) { | ||
| return std::swprintf(buf, N, fmt, args...); | ||
| return swprintf(buf, N, fmt, args...); |
Collaborator
There was a problem hiding this comment.
use #ifdef if you need so
| static void TraversalDir(const wchar_t* wpath, const std::function<void(const wchar_t*, bool)>& cb) { | ||
| wchar_t findstr[1024]; | ||
| std::swprintf(findstr, sizeof findstr / sizeof findstr[0], L"%s/*", wpath); | ||
| swprintf(findstr, sizeof findstr / sizeof findstr[0], L"%s/*", wpath); |
Collaborator
There was a problem hiding this comment.
use #ifdef if you need so
Collaborator
|
現代的C++標準建議使用 std::swprintf |
Collaborator
|
https://github.com/Fluorohydride/ygopro/wiki/Windows%E4%B8%8A%E7%BC%96%E8%AF%91 現在要改成直接使用 |
Collaborator
|
需要一个完整的msys2编译文档 |
Contributor
Author
“# 用msys2编译ygopro 步骤
补充
|
Collaborator
|
Does it make any improvements? |
Contributor
Author
似乎没有。 |
Merged
Collaborator
|
I guess it should be |
mercury233
approved these changes
May 31, 2025
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.