[
https://issues.apache.org/jira/browse/HDFS-16602?focusedWorklogId=775645&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-775645
]
ASF GitHub Bot logged work on HDFS-16602:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 28/May/22 07:43
Start Date: 28/May/22 07:43
Worklog Time Spent: 10m
Work Description: GauthamBanasandra opened a new pull request, #4371:
URL: https://github.com/apache/hadoop/pull/4371
<!--
Thanks for sending a pull request!
1. If this is your first time, please read our contributor guidelines:
https://cwiki.apache.org/confluence/display/HADOOP/How+To+Contribute
2. Make sure your PR title starts with JIRA issue id, e.g.,
'HADOOP-17799. Your PR title ...'.
-->
### Description of PR
The `#if` preprocessor directive expects a boolean expression. Thus, we need
to use the `defined` directive as well to check if the macro has been defined.
### How was this patch tested?
In progress.
### For code changes:
- [x] Does the title or this PR starts with the corresponding JIRA issue id
(e.g. 'HADOOP-17799. Your PR title ...')?
- [ ] Object storage: have the integration tests been executed and the
endpoint declared according to the connector-specific documentation?
- [ ] If adding new dependencies to the code, are these dependencies
licensed in a way that is compatible for inclusion under [ASF
2.0](http://www.apache.org/legal/resolved.html#category-a)?
- [ ] If applicable, have you updated the `LICENSE`, `LICENSE-binary`,
`NOTICE-binary` files?
Issue Time Tracking
-------------------
Worklog Id: (was: 775645)
Remaining Estimate: 0h
Time Spent: 10m
> Use "defined" directive along with #if
> --------------------------------------
>
> Key: HDFS-16602
> URL: https://issues.apache.org/jira/browse/HDFS-16602
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: libhdfs++
> Affects Versions: 3.4.0
> Reporter: Gautham Banasandra
> Assignee: Gautham Banasandra
> Priority: Major
> Labels: libhdfscpp
> Time Spent: 10m
> Remaining Estimate: 0h
>
> The #if preprocessor directive expects a boolean expression. Thus, we need to
> use the "defined" directive as well to check if the macro has been defined.
--
This message was sent by Atlassian Jira
(v8.20.7#820007)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]