]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[gdb/python] Fix check-include-guards check in python-limited-api-missing.h
authorTom de Vries <tdevries@suse.de>
Fri, 15 May 2026 12:15:22 +0000 (14:15 +0200)
committerTom de Vries <tdevries@suse.de>
Fri, 15 May 2026 12:15:22 +0000 (14:15 +0200)
The check-include-guards check fails for
gdb/python/python-limited-api-missing.h:
...
check-include-guards....................................................Failed
- hook id: check-include-guards
- exit code: 1

gdb/python/python-limited-api-missing.h:22: wrong symbol in ifndef
...

Fix this by using GDB_PYTHON_PYTHON_LIMITED_API_MISSING_H instead of
GDB_PYTHON_LIMITED_API_MISSING_H.

gdb/python/python-limited-api-missing.h

index 07882ca1cf2d92ba2f042571b69d72024bd44b18..40359abf337a81acdebd61ffe1236796ad3750b2 100644 (file)
@@ -19,8 +19,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef GDB_PYTHON_LIMITED_API_MISSING_H
-#define GDB_PYTHON_LIMITED_API_MISSING_H
+#ifndef GDB_PYTHON_PYTHON_LIMITED_API_MISSING_H
+#define GDB_PYTHON_PYTHON_LIMITED_API_MISSING_H
 
 #ifdef Py_LIMITED_API
 extern "C"
@@ -59,4 +59,4 @@ PyAPI_FUNC(int) PyRun_InteractiveLoop (FILE *f, const char *p);
 }
 #endif /* Py_LIMITED_API */
 
-#endif /* GDB_PYTHON_LIMITED_API_MISSING_H */
+#endif /* GDB_PYTHON_PYTHON_LIMITED_API_MISSING_H */