You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While this does not seem like a pressing need, there's no reason we should not be consistent and do this properly in all header files.
The text was updated successfully, but these errors were encountered:
edhartnett
changed the title
inconsistent use of #if defined(__cplusplus) in header files
missing #if defined(__cplusplus) in netcdf_dispatch.h
Aug 22, 2019
In some of our header files (ex. hdf5dispatch.h) we have the if defined(__cplusplus) business around all our prototypes, like this:
On other header files, like netcdf_dispatch.h, we don't have that.
Should we have that for all prototypes in all header files? I believe the answer is yes.
These are needed for C++ compilers to compile the netCDF C library, as described here: https://stackoverflow.com/questions/3789340/combining-c-and-c-how-does-ifdef-cplusplus-work
While this does not seem like a pressing need, there's no reason we should not be consistent and do this properly in all header files.
The text was updated successfully, but these errors were encountered: