mirror of
https://github.com/dgibson/dtc.git
synced 2026-04-11 16:37:42 -04:00
pylibfdt: Add stdint include to fix uint32_t
Some types used by libfdt.h are not understood the Python module since they are defined outside it. An example is an attempt to do this: import libfdt result = libfdt.fdt_node_offset_by_phandle(fdt, phandle) This results in: TypeError: in method 'fdt_node_offset_by_phandle', argument 2 of type 'uint32_t' Include the standard integer header file to fix this. Signed-off-by: Simon Glass <sjg@chromium.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
36f511fb11
commit
ab78860f09
1 changed files with 2 additions and 0 deletions
|
|
@ -52,6 +52,8 @@
|
|||
|
||||
%module libfdt
|
||||
|
||||
%include <stdint.i>
|
||||
|
||||
%{
|
||||
#define SWIG_FILE_WITH_INIT
|
||||
#include "libfdt.h"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue