X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Flib%2Fplatform%2Fos.h;h=d3108e4f5126fe997be83fe477deca2de4f8bf8a;hb=34232c9249859abed3ae97c4d4289dd6ec87a2f6;hp=fbe090342986ce0e7bc67fd5ad3099ce33994df6;hpb=d0a712a65c05b4bf7bf25eafb8b4c999b6888a42;p=deb_libcec.git diff --git a/src/lib/platform/os.h b/src/lib/platform/os.h index fbe0903..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 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,18 +31,17 @@ * http://www.pulse-eight.net/ */ -#if defined(_WIN32) || defined(_WIN64) -#ifndef __WINDOWS__ -#define __WINDOWS__ +#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" -#include "windows/os-threads.h" #else #include "posix/os-types.h" -#include "posix/os-threads.h" #endif - -#include "timeutils.h" -#include "threads/threads.h" -#include "buffer.h" -#include "StdString.h"