Fix nnfw.h application build errors (#7716)
author함명주/On-Device Lab(SR)/Principal Engineer/삼성전자 <myungjoo.ham@samsung.com>
Tue, 24 Sep 2019 23:46:34 +0000 (08:46 +0900)
committer오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 <hseok82.oh@samsung.com>
Tue, 24 Sep 2019 23:46:34 +0000 (08:46 +0900)
Fix build errors of applications using nnfw.h:
```
[   15s] /usr/include/nnfw.h:162:35: error: unknown type name 'nnfw_tensorinfo'
[   15s]                                    nnfw_tensorinfo *tensor_info);
[   15s]                                    ^~~~~~~~~~~~~~~
[   15s] /usr/include/nnfw.h:174:36: error: unknown type name 'nnfw_tensorinfo'
[   15s]                                     nnfw_tensorinfo *tensor_info);
[   15s]                                     ^~~~~~~~~~~~~~~
```

Fixes #7715

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
runtimes/include/nnfw.h

index 320b7b1..456781e 100644 (file)
@@ -25,6 +25,7 @@ extern "C" {
 #endif
 
 typedef struct nnfw_session nnfw_session;
+typedef struct nnfw_tensorinfo nnfw_tensorinfo;
 
 typedef enum {
   NNFW_TYPE_TENSOR_FLOAT32 = 0,