Searched hist:ed938b00aafbc8619c94f12cc845a1c4a3fa2bcd (Results 1 – 2 of 2) sorted by relevance
| /petsc/config/PETSc/ |
| H A D | Configure.py | diff ed938b00aafbc8619c94f12cc845a1c4a3fa2bcd Sun Oct 06 20:15:22 UTC 2013 Jed Brown <jedbrown@mcs.anl.gov> config: define lang-specific macros in petscconf.h, choose in petscsys.h
C and C++ compilers can use different spellings for concepts like "restrict", "static inline", and "__func__". Previously, these were defined for the "C language", meaning that they could fail if when clanguage=C PETSc headers are included by a file that is being compiled by the C++ compiler. This happens outside of PETSc, but also with third-party packages like Elemental (matelem.cxx).
Karl Rupp proposed an implementation that puts the __cplusplus dispatch into petscconf.h, but I prefer that petscconf.h contain no logic.
Reported-by: Geoffrey Irving <irving@naml.us> Reported-by: Geoff Oxberry <goxberry@mit.edu>
|
| /petsc/include/ |
| H A D | petscsys.h | diff ed938b00aafbc8619c94f12cc845a1c4a3fa2bcd Sun Oct 06 20:15:22 UTC 2013 Jed Brown <jedbrown@mcs.anl.gov> config: define lang-specific macros in petscconf.h, choose in petscsys.h
C and C++ compilers can use different spellings for concepts like "restrict", "static inline", and "__func__". Previously, these were defined for the "C language", meaning that they could fail if when clanguage=C PETSc headers are included by a file that is being compiled by the C++ compiler. This happens outside of PETSc, but also with third-party packages like Elemental (matelem.cxx).
Karl Rupp proposed an implementation that puts the __cplusplus dispatch into petscconf.h, but I prefer that petscconf.h contain no logic.
Reported-by: Geoffrey Irving <irving@naml.us> Reported-by: Geoff Oxberry <goxberry@mit.edu>
|