[core] Move library include wrappers to common
This commit is contained in:
@@ -51,6 +51,7 @@ def env_add_defaults(env, platform, board):
|
||||
env.Prepend(
|
||||
CPPPATH=[
|
||||
"$LT_DIR/platform/common/fixups",
|
||||
"$LT_DIR/platform/common/fixups/lib_inc",
|
||||
"$BOARD_DIR",
|
||||
"$FAMILY_DIR/fixups",
|
||||
"$PARENT_DIR/fixups",
|
||||
|
||||
5
platform/common/fixups/lib_inc/netif.h
Normal file
5
platform/common/fixups/lib_inc/netif.h
Normal file
@@ -0,0 +1,5 @@
|
||||
/* Copyright (c) Kuba Szczodrzyński 2022-07-20. */
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <lwip/netif.h>
|
||||
@@ -7,4 +7,6 @@
|
||||
// this is included only by wifi_simple_config.c
|
||||
// which uses lwip_ntohl without parentheses
|
||||
// so the #define from lwip/def.h doesn't work
|
||||
#ifndef lwip_ntohl
|
||||
#define lwip_ntohl lwip_htonl
|
||||
#endif
|
||||
@@ -1,5 +0,0 @@
|
||||
/* Copyright (c) Kuba Szczodrzyński 2022-05-23. */
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <lwip/sockets.h>
|
||||
Reference in New Issue
Block a user