mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-23 05:57:34 +08:00
RPC updates
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4446 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
+10
-7
@@ -1,8 +1,8 @@
|
||||
/****************************************************************************
|
||||
* include/string.h
|
||||
*
|
||||
* Copyright (C) 2007-2011 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
||||
* Copyright (C) 2007-2012 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
@@ -45,8 +45,15 @@
|
||||
#include <stddef.h>
|
||||
|
||||
/****************************************************************************
|
||||
* Definitions
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
/* Compatibility definitions */
|
||||
|
||||
#ifndef CONFIG_ARCH_BZERO
|
||||
# define bzero(s,n) (void)memset(s,0,n)
|
||||
#endif
|
||||
|
||||
#define bcopy(b1,b2,len) (void)memmove(b2,b1,len)
|
||||
|
||||
/****************************************************************************
|
||||
* Global Function Prototypes
|
||||
@@ -89,10 +96,6 @@ EXTERN FAR void *memcpy(FAR void *dest, FAR const void *src, size_t n);
|
||||
EXTERN int memcmp(FAR const void *s1, FAR const void *s2, size_t n);
|
||||
EXTERN FAR void *memmove(FAR void *dest, FAR const void *src, size_t count);
|
||||
|
||||
#ifndef CONFIG_ARCH_BZERO
|
||||
# define bzero(s,n) (void)memset(s,0,n)
|
||||
#endif
|
||||
|
||||
#undef EXTERN
|
||||
#if defined(__cplusplus)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user