-
Notifications
You must be signed in to change notification settings - Fork 67
[ZH] Fix compilation using MinGW #547
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
base: main
Are you sure you want to change the base?
Changes from all commits
6b5f516
176f1ce
5ec2ac7
43c49b2
d89f254
3c05bd8
1a37f94
3d4c893
32c2234
eaf937e
f5e72d9
862b45d
337a01d
d8fb831
be8d67b
11928ee
95e8064
ed1a5dd
6e6fad4
81f4234
4cb8d7c
1073855
ef1d840
cd6be77
9edf0f4
63ec6dd
aa30755
23a34a9
b117146
feba1d3
c5cc49c
ff2197f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -68,7 +68,7 @@ struct AcademyAdviceInfo | |
UnsignedInt numTips; | ||
}; | ||
|
||
enum AcademyClassificationType | ||
enum AcademyClassificationType CPP_11(: int) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why are you specifying the underlying type for enums that are fully defined? Specifying the type is optional? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. When you use type on forward declarations of enum, you then need to use it also for definitions. Inconsistency here can lead to compiler errors as well. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Given the scale of the issue, I have not explicitly checked existence of forward declarations of each enum, but simply changed them all (in GameEngine and GameEngineDevice, by script). I think changing all is better anyway, because in other case you would have some enums you can forward declare and some which you cant... There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I agree with consistency. |
||
{ | ||
//Don't forget to update the strings too! | ||
ACT_NONE, | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,7 +36,7 @@ | |
|
||
class AudioEventRTS; | ||
|
||
enum RequestType | ||
enum RequestType CPP_11(: int) | ||
{ | ||
AR_Play, | ||
AR_Pause, | ||
|
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.
UNIMPLEMENTED_ERROR
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.
Oh, I had to read it several times to spot the typo :) I'll fix that.