Browse Source

uwp: include process.h before forcing the WINAPI_FAMILY

Because of the hack on getpid() in fixups we don't want to get the unhidden desktop version
pull/174/head
Steve Lhomme 1 year ago
parent
commit
186f53a162
  1. 1
      modules/codec/avcodec/d3d11va.c
  2. 1
      modules/codec/avcodec/directx_va.c
  3. 1
      modules/codec/mft.cpp
  4. 1
      modules/codec/mft_d3d.cpp
  5. 1
      modules/codec/mft_d3d11.cpp
  6. 1
      modules/video_chroma/d3d11_fmt.cpp

1
modules/codec/avcodec/d3d11va.c

@ -29,6 +29,7 @@
* See https://msdn.microsoft.com/en-us/library/windows/desktop/hh162912%28v=vs.85%29.aspx
**/
#include <process.h>
#include <winapifamily.h>
#undef WINAPI_FAMILY
#define WINAPI_FAMILY WINAPI_FAMILY_DESKTOP_APP

1
modules/codec/avcodec/directx_va.c

@ -23,6 +23,7 @@
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#include <process.h>
#include <winapifamily.h>
#undef WINAPI_FAMILY
#define WINAPI_FAMILY WINAPI_FAMILY_DESKTOP_APP

1
modules/codec/mft.cpp

@ -21,6 +21,7 @@
*****************************************************************************/
#ifndef _MSC_VER // including mfapi with mingw-w64 is not clean for UWP yet
#include <process.h>
#include <winapifamily.h>
#undef WINAPI_FAMILY
#define WINAPI_FAMILY WINAPI_FAMILY_DESKTOP_APP

1
modules/codec/mft_d3d.cpp

@ -21,6 +21,7 @@
*****************************************************************************/
#ifndef _MSC_VER // including mfapi with mingw-w64 is not clean for UWP yet
#include <process.h>
#include <winapifamily.h>
#undef WINAPI_FAMILY
#define WINAPI_FAMILY WINAPI_FAMILY_DESKTOP_APP

1
modules/codec/mft_d3d11.cpp

@ -21,6 +21,7 @@
*****************************************************************************/
#ifndef _MSC_VER // including mfapi with mingw-w64 is not clean for UWP yet
#include <process.h>
#include <winapifamily.h>
#undef WINAPI_FAMILY
#define WINAPI_FAMILY WINAPI_FAMILY_DESKTOP_APP

1
modules/video_chroma/d3d11_fmt.cpp

@ -20,6 +20,7 @@
* Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#include <process.h>
#include <winapifamily.h>
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
#define BUILD_FOR_UAP 0

Loading…
Cancel
Save