From: Martell Malone Subject: [PATCH 1/4] wine-headers: add a winapifamily header Message-Id: Date: Thu, 5 Feb 2015 10:48:29 +0000 I am redoing my previous patches in a series. I hope it is more readable this way.
I am redoing my previous patches in a series.
I hope it is more readable this way.

From dcf952b321ced9e3bc1b2c07b60c300f8c32cc13 Mon Sep 17 00:00:00 2001 From: Martell Malone Date: Tue, 3 Feb 2015 18:15:30 +0000 Subject: [PATCH 1/4] wine-headers: add a winapifamily header --- include/winapifamily.h | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 include/winapifamily.h diff --git a/include/winapifamily.h b/include/winapifamily.h new file mode 100644 index 0000000..ad78e66 --- /dev/null +++ b/include/winapifamily.h @@ -0,0 +1,37 @@ +/* + * Copyright (C) 2015 Martell Malone + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +#ifndef __WINE_WINAPIFAMILY_H +#define __WINE_WINAPIFAMILY_H + +#define WINAPI_PARTITION_DESKTOP 0x1 +#define WINAPI_PARTITION_APP 0x2 + +#define WINAPI_FAMILY_APP WINAPI_PARTITION_APP +#define WINAPI_FAMILY_DESKTOP_APP (WINAPI_PARTITION_DESKTOP \ + | WINAPI_PARTITION_APP) + +/* wine wants all the api's by default so we set to desktop + app */ +#ifndef WINAPI_FAMILY +#define WINAPI_FAMILY WINAPI_FAMILY_DESKTOP_APP +#endif + +#define WINAPI_FAMILY_PARTITION(v) ((WINAPI_FAMILY & v) == v) +#define WINAPI_FAMILY_ONE_PARTITION(vset, v) ((WINAPI_FAMILY & vset) == v) + +#endif /* __WINE_WINAPIFAMILY_H */ -- 2.2.2