-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix include c2a-core v4 #519
Conversation
@@ -9,7 +9,9 @@ | |||
#ifdef USE_C2A | |||
#include "src_core/c2a_core_main.h" | |||
|
|||
#if C2A_CORE_VER_MAJOR == 4 | |||
#if !defined(C2A_CORE_VER_MAJOR) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
C2A_CORE_VER_MAJOR
が常に定義されていればこれでよい(そしてそうあるべき)のだが,よく考えると C2A_CORE_VER_MAJOR
は v3.5.0 で入れたものなので,この対応だと v3.0.0 ~ v3.4.0 に対して breaking となってしまう
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
そしてこのファイル,もしかしてUSE_C2A=OFF
でもビルドされてる?(なのでこの PR の CI 落ちてる)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not defined な時は #warning
に変えた: f639d33
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
これらのファイルは USE_C2A=ON
の時のみビルドすべきでは?というのは #520 でやる(breaking change になってしまうし)
5cc8176
to
f639d33
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
修正ありがとうございます。
Merge develop to main for hotfix #519
Related issues
Description
Fixes build issue with c2a-core v4 integration.
src/components/real/communication/wings_command_sender_to_c2a.cpp
#include "src_core/c2a_core_main.h"
C2A_CORE_VER_MAJOR
is definedTest results
Impact
Supplementary information
N/A