sim: pru: fix include ordering with sim-main.h
authorMike Frysinger <vapier@gentoo.org>
Sat, 9 Jan 2021 08:01:05 +0000 (03:01 -0500)
committerMike Frysinger <vapier@gentoo.org>
Sat, 9 Jan 2021 13:43:48 +0000 (08:43 -0500)
commitf41464416a1744ca0151d61de1a7e405664dd9b7
treeb91f7672f311b50b65e43aa6f2dd3407962f5562
parentb5a4a01af4ef4f5edefacf45dc173f559d09c4b5
sim: pru: fix include ordering with sim-main.h

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]
sim/pru/ChangeLog
sim/pru/sim-main.h