Skip to content
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 compile error: NC_CLASSIC_MODEL #189

Merged
merged 2 commits into from
Jun 25, 2019

Conversation

wkliao
Copy link
Contributor

@wkliao wkliao commented Jun 25, 2019

two simple fixes

@@ -51,7 +51,9 @@
#include "netcdf.h"

#ifndef USE_NETCDF4
#ifndef NC_CLASSIC_MODEL
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Won't NC_CLASSIC_MODEL always be defined by netcdf.h?

In which case, the definition here should be removed, not placed in an ifdef...

@wkliao
Copy link
Contributor Author

wkliao commented Jun 25, 2019

I did not check the logics here. By looking at the file name, I assume this is for NetCDF V2, which may not have NC_CLASSIC_MODEL defined. I added that just to be safe. The latest update for that define was by @DennisHeimbigner

@WardF WardF merged commit 932531a into Unidata:master Jun 25, 2019
@wkliao wkliao deleted the redefine_NC_CLASSIC_MODEL branch April 17, 2022 00:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants