Make sure config.h is included before C library headers otherwise the
later libiberty.h include gets confused about asprintf state leading
to warnings like:
common/sim-utils.c:330:9:
warning: implicit declaration of function 'vasprintf';
did you mean 'xvasprintf'? [-Wimplicit-function-declaration]
+2021-01-09 Mike Frysinger <vapier@gentoo.org>
+
+ * sim-main.h: Include config.h.
+
2021-01-08 Mike Frysinger <vapier@gentoo.org>
* configure: Regenerate.
#ifndef PRU_SIM_MAIN
#define PRU_SIM_MAIN
+#include "config.h"
+
#include <stdint.h>
#include <stddef.h>
#include "pru.h"