X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Flib%2Fplatform%2Fos.h;h=d3108e4f5126fe997be83fe477deca2de4f8bf8a;hb=58691fb86d4dd7daac8b283a1bf1f125f00847a5;hp=4913d7b066244848fdabad850d58b0e8bd26dd38;hpb=d749efb2d01817c0a8ad8b32a1b9861c5a78c83d;p=deb_libcec.git diff --git a/src/lib/platform/os.h b/src/lib/platform/os.h index 4913d7b..d3108e4 100644 --- a/src/lib/platform/os.h +++ b/src/lib/platform/os.h @@ -2,7 +2,7 @@ /* * This file is part of the libCEC(R) library. * - * libCEC(R) is Copyright (C) 2011-2012 Pulse-Eight Limited. All rights reserved. + * libCEC(R) is Copyright (C) 2011-2013 Pulse-Eight Limited. All rights reserved. * libCEC(R) is an original work, containing original code. * * libCEC(R) is a trademark of Pulse-Eight Limited. @@ -31,6 +31,15 @@ * http://www.pulse-eight.net/ */ +#ifdef UNUSED +#elif defined(__GNUC__) +#define UNUSED(x) UNUSED_ ## x __attribute__((unused)) +#elif defined(__LCLINT__) +#define UNUSED(x) /*@unused@*/ x +#else +#define UNUSED(x) x +#endif + #if (defined(_WIN32) || defined(_WIN64)) #include "windows/os-types.h" #else