Improve #include guard macros

Avoid using reserved identifiers such as `_DOHINT_H` (fixes #1989),
fix cases where the name doesn't match the filename, and make the naming
more consistent and less likely to collide with include guards in other
headers.
This commit is contained in:
Olly Betts 2022-07-19 08:14:07 +12:00 • committed by Olly Betts
commit 892557e799
21 changed files with 51 additions and 51 deletions

View file

@ -9,8 +9,8 @@
// g++ -c -include octheaders.hpp ...
//
#if !defined(_SWIG_OCTAVE_OCTHEADERS_HPP)
#define _SWIG_OCTAVE_OCTHEADERS_HPP
#if !defined(SWIG_OCTAVE_OCTHEADERS_HPP)
#define SWIG_OCTAVE_OCTHEADERS_HPP
// Required C++ headers
#include <cstdlib>
@ -127,4 +127,4 @@
#include <octave/call-stack.h>
#endif
#endif // !defined(_SWIG_OCTAVE_OCTHEADERS_HPP)
#endif // !defined(SWIG_OCTAVE_OCTHEADERS_HPP)