HDFS-16602. Use "defined" directive along with #if#4371
Merged
GauthamBanasandra merged 3 commits intoapache:trunkfrom Jun 3, 2022
Merged
HDFS-16602. Use "defined" directive along with #if#4371GauthamBanasandra merged 3 commits intoapache:trunkfrom
GauthamBanasandra merged 3 commits intoapache:trunkfrom
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
goiri
approved these changes
May 31, 2022
ac6811f to
b472514
Compare
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
4 tasks
* The #if directive expects a boolean expression. This PR uses the more appropriate "defined" directive.
This reverts commit 9c80775faa889caa930a48e16f88befe4c0a233a.
b472514 to
2c790d4
Compare
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
HarshitGupta11
pushed a commit
to HarshitGupta11/hadoop
that referenced
this pull request
Nov 28, 2022
* The #if directive expects a boolean expression. This PR uses the more appropriate "defined" directive.
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.
Description of PR
The
#ifpreprocessor directive expects a boolean expression. Thus, we need to use thedefineddirective as well to check if the macro has been defined.How was this patch tested?
Unit tests run by Jenkins CI.
For code changes:
LICENSE,LICENSE-binary,NOTICE-binaryfiles?