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
Why does netcdf_mem.h #include netcdf.h? #1148
Comments
This is a common idiom in C programming. It prevents a header from |
Dennis, I'm referring specifically to the line #include <netcdf.h> netcdf_mem.h is basically a red-headed stepson of netcdf.h. |
Probably historical. Not needed especially since netcdf_mem.h does not |
Answering my own question from the OP: netcdf_mem.h depends on netcdf.h for this definition:
So please keep the |
We need to state that all of the secondary netcdf_xxx.h files require |
Odd query from a Fortran programmer still learning how C operates: Why doesn't Or, I suppose, why is |
This was an historical attempt to factor out the EXTERNL stuff into a separate header. |
Umm, let me clarify that I think removing
The full thread is here: |
Recall that the include/netcdf*.h files are installed files so that they represent |
Good enough for me. |
I’ll see about getting a fix in shortly. |
@czender is restoring the |
I think so |
I think this issue should be closed. |
I still think this issue should be closed. ;-) |
What purpose does this code in
netcdf_mem.h
serve?The text was updated successfully, but these errors were encountered: