commit | bcafdb92636f94791b849e47503b30551a5e01a8 | [log] [tgz] |
---|---|---|
author | Moritz Fischer <moritzf@google.com> | Tue Jun 28 19:03:03 2022 -0700 |
committer | Moritz Fischer <moritzf@google.com> | Tue Jun 28 19:06:48 2022 -0700 |
tree | 14cc7590b196a7301facf56f8aa07b82361eb4a5 | |
parent | af0cd6221ba85c01cabd4c3ab463b4547ceaa38a [diff] [blame] |
compiler.h: Avoid duplicate definition of __unused Avoid duplicate definition of __unused macro in environments that already define the macro. Signed-off-by: Moritz Fischer <moritzf@google.com> Change-Id: Ic91623d67325cb5eb25fd111416c4ef5968a9e96
diff --git a/compiler.h b/compiler.h index 6aefbf9..18bccee 100644 --- a/compiler.h +++ b/compiler.h
@@ -2,6 +2,8 @@ #ifndef _COMPILER_H #define _COMPILER_H +#ifndef __unused #define __unused __attribute__((unused)) +#endif #endif