]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EmbeddedPkg/Include/libfdt_env.h
ArmPkg: only attempt buildin MmCommunicationDxe for AArch64
[mirror_edk2.git] / EmbeddedPkg / Include / libfdt_env.h
index 3e24db94098c2651ea9c6f4484d2cd54b72fc8fa..11a97647333e64ca2b16e4760163b12c9bb82eff 100644 (file)
@@ -2,13 +2,7 @@
 *\r
 *  Copyright (c) 2011-2014, ARM Limited. All rights reserved.\r
 *\r
-*  This program and the accompanying materials\r
-*  are licensed and made available under the terms and conditions of the BSD License\r
-*  which accompanies this distribution.  The full text of the license may be found at\r
-*  http://opensource.org/licenses/bsd-license.php\r
-*\r
-*  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-*  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+*  SPDX-License-Identifier: BSD-2-Clause-Patent\r
 *\r
 **/\r
 \r
@@ -78,4 +72,8 @@ static inline char *strchr(const char *s, int c) {
   return AsciiStrStr (s, pattern);\r
 }\r
 \r
+static inline size_t strnlen (const char* str, size_t strsz ) {\r
+  return AsciiStrnLenS (str, strsz);\r
+}\r
+\r
 #endif /* _LIBFDT_ENV_H */\r