[binutils-gdb] [gdb/python] Fix check-include-guards check in python-limited-api-missing.h

Tom de Vries via Gdb-cvs <[email protected]>
Newsgroups gmane.comp.gdb.cvs
Message-ID <[email protected]>
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=79fcceafcbfe9aa02441445eb9444718b17330df

commit 79fcceafcbfe9aa02441445eb9444718b17330df
Author: Tom de Vries <[email protected]>
Date:   Fri May 15 14:15:22 2026 +0200

    [gdb/python] Fix check-include-guards check in python-limited-api-missing.h
    
    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.

Diff:
---
 gdb/python/python-limited-api-missing.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/gdb/python/python-limited-api-missing.h b/gdb/python/python-limited-api-missing.h
index 07882ca1cf2..40359abf337 100644
--- a/gdb/python/python-limited-api-missing.h
+++ b/gdb/python/python-limited-api-missing.h
@@ -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 */
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.