diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2015-02-17 08:24:20 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2015-02-17 08:24:20 -0600 |
commit | b64e6efd818227a3611af5749109eaeaa33a4fc6 (patch) | |
tree | e1ff6f3c1fb47c32176d133b452a02a3961572fa | |
parent | 480fa9b47778b9089a8e25129f913239a638c5c3 (diff) | |
download | nuttx-b64e6efd818227a3611af5749109eaeaa33a4fc6.tar.gz nuttx-b64e6efd818227a3611af5749109eaeaa33a4fc6.tar.bz2 nuttx-b64e6efd818227a3611af5749109eaeaa33a4fc6.zip |
Add support for the restrict keyword
-rw-r--r-- | nuttx/include/nuttx/compiler.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/nuttx/include/nuttx/compiler.h b/nuttx/include/nuttx/compiler.h index 0575a570e..2a55adf37 100644 --- a/nuttx/include/nuttx/compiler.h +++ b/nuttx/include/nuttx/compiler.h @@ -1,7 +1,7 @@ /**************************************************************************** * include/nuttx/compiler.h * - * Copyright (C) 2007-2009, 2012-2013 Gregory Nutt. All rights reserved. + * Copyright (C) 2007-2009, 2012-2013, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -243,6 +243,7 @@ # define weak_alias(name, aliasname) # define weak_function # define weak_const_function +# define restrict /* REVISIT */ /* SDCC does not support the noreturn or packed attributes */ @@ -355,6 +356,7 @@ # define weak_alias(name, aliasname) # define weak_function # define weak_const_function +# define restrict /* The Zilog compiler does not support the noreturn, packed, naked attributes */ @@ -446,6 +448,7 @@ # define weak_alias(name, aliasname) # define weak_function # define weak_const_function +# define restrict # define noreturn_function # define farcall_function # define packed_struct |