mirror of
https://github.com/dgibson/dtc.git
synced 2025-10-14 16:57:38 -04:00
libfdt: libfdt_env.h must be included first
libfdt.h currently includes fdt.h, then libfdt_env.h. This is incorrect, because depending on the environment into which libfdt is embedded, libfdt_env.h may be needed to define datatypes used in fdt.h. This patch corrects the problem. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
fd1bf3a5ae
commit
6f8b7710c9
1 changed files with 1 additions and 1 deletions
|
@ -51,8 +51,8 @@
|
||||||
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <fdt.h>
|
|
||||||
#include <libfdt_env.h>
|
#include <libfdt_env.h>
|
||||||
|
#include <fdt.h>
|
||||||
|
|
||||||
#define FDT_FIRST_SUPPORTED_VERSION 0x10
|
#define FDT_FIRST_SUPPORTED_VERSION 0x10
|
||||||
#define FDT_LAST_SUPPORTED_VERSION 0x11
|
#define FDT_LAST_SUPPORTED_VERSION 0x11
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue