aboutsummaryrefslogtreecommitdiff
path: root/helper
diff options
context:
space:
mode:
authorMatias Elo <matias.elo@nokia.com>2019-10-02 15:48:59 +0300
committerMatias Elo <matias.elo@nokia.com>2019-10-07 09:49:07 +0300
commit18abf931651e3f21bc858efc2f1df50f24821611 (patch)
tree5689fa043b8b899a44d444bfb31b5948acc85bb6 /helper
parent60a830b9e000053caab24a0befb578551ba1766b (diff)
linux-gen: include only ODP defines in autogenerated header files
The config.h file has been split into three parts: autoheader_build.h: should NOT be included by ANY source file autoheader_external.h: can be included by any source file, including public headers autoheader_internal.h: can be included by any internal source file, but NOT by public headers autoheader_external.h and autoheader_internal.h are generated based on matching template files (*.in) and include only ODP defines. autoheader_build.h includes all build defines and should not be included by any source file. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
Diffstat (limited to 'helper')
-rw-r--r--helper/include/odp/helper/odph_debug.h2
-rw-r--r--helper/test/debug.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/helper/include/odp/helper/odph_debug.h b/helper/include/odp/helper/odph_debug.h
index 370a0fa12..2fa89d8ab 100644
--- a/helper/include/odp/helper/odph_debug.h
+++ b/helper/include/odp/helper/odph_debug.h
@@ -15,7 +15,7 @@
#ifndef ODPH_DEBUG_H_
#define ODPH_DEBUG_H_
-#include <odp/config.h>
+#include <odp/autoheader_external.h>
#include <stdio.h>
#include <stdlib.h>
diff --git a/helper/test/debug.c b/helper/test/debug.c
index 48d4462c9..2431b0ecd 100644
--- a/helper/test/debug.c
+++ b/helper/test/debug.c
@@ -4,7 +4,7 @@
* SPDX-License-Identifier: BSD-3-Clause
*/
-#include <odp/config.h>
+#include <odp/autoheader_external.h>
#include <odp_api.h>
#include <odp/helper/odph_api.h>