zephyr/include/zephyr/zephyr.h
Gerard Marull-Paretas 7f2ad2e27d includes: deprecate <zephyr/zephyr.h>
Deprecate <zephyr/zephyr.h> in favor of <zephyr/kernel.h> since they are
equivalents (zephyr/zephyr.h is just a shim). Do not warn about
deprecation if already using the deprecated CONFIG_LEGACY_INCLUDE_PATH
option.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2022-09-05 16:31:47 +02:00

17 lines
344 B
C

/*
* Copyright (c) 2015 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_ZEPHYR_H_
#define ZEPHYR_INCLUDE_ZEPHYR_H_
#include <zephyr/kernel.h>
#ifndef CONFIG_LEGACY_INCLUDE_PATH
#warning "<zephyr/zephyr.h> is deprecated, include <zephyr/kernel.h> instead"
#endif
#endif /* ZEPHYR_INCLUDE_ZEPHYR_H_ */