More stringent #include API checks

This commit is contained in:
Hans Ulrich Niedermann
2024-02-14 16:43:26 +01:00
parent 5c1649dcee
commit bfd9606d23
2 changed files with 8 additions and 0 deletions

View File

@@ -1,6 +1,9 @@
/*
* Do not edit: automatically generated by mkavrintel.pl
*
* Do NOT directly "#include <libavrdude-avrintel.h>" into your code.
* DO "#include <libavrdude.h>" instead.
*
* libavrdude-avrintel.h
*
* Microchip AVR8L, AVR8, XMEGA and AVR8X family description of interrupts, configurations and more

View File

@@ -25,6 +25,11 @@
#include <limits.h>
#include <stdbool.h>
#include <stdint.h>
#ifdef LIBAVRDUDE_INCLUDE_INTERNAL_HEADERS
#error LIBAVRDUDE_INCLUDE_INTERNAL_HEADERS is defined. Do not do that.
#endif
#define LIBAVRDUDE_INCLUDE_INTERNAL_HEADERS
#include "libavrdude-avrintel.h"
#undef LIBAVRDUDE_INCLUDE_INTERNAL_HEADERS