Skip to content

Commit

Permalink
Apply ARM patches from vcpkg
Browse files Browse the repository at this point in the history
Signed-off-by: Maxime Gervais <[email protected]>
  • Loading branch information
g-maxime committed Dec 1, 2024
1 parent 94388ec commit ce46d23
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
18 changes: 10 additions & 8 deletions Source/MediaInfo/MediaInfo_Internal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,14 @@
#if MEDIAINFO_ADVANCED && defined(MEDIAINFO_FILE_YES)
#include <limits>
#ifdef WINDOWS
namespace WindowsNamespace
{
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef NOMINMAX
#define NOMINMAX
#endif
#include <windows.h>
#undef Yield
#undef max
}
#else
#include <unistd.h>
#include <signal.h>
Expand Down Expand Up @@ -1017,7 +1019,7 @@ static void CtrlC_Received()
}

#ifdef WINDOWS
static WindowsNamespace::BOOL WINAPI SignalHandler(WindowsNamespace::DWORD SignalType)
static BOOL WINAPI SignalHandler(DWORD SignalType)
{
if (SignalType==CTRL_C_EVENT)
{
Expand All @@ -1030,12 +1032,12 @@ static WindowsNamespace::BOOL WINAPI SignalHandler(WindowsNamespace::DWORD Signa

static void CtrlC_Register()
{
WindowsNamespace::SetConsoleCtrlHandler(SignalHandler, TRUE);
SetConsoleCtrlHandler(SignalHandler, TRUE);
}

static void CtrlC_Unregister()
{
WindowsNamespace::SetConsoleCtrlHandler(SignalHandler, FALSE);
SetConsoleCtrlHandler(SignalHandler, FALSE);
}
#else //WINDOWS
static void SignalHandler(int SignalType)
Expand Down Expand Up @@ -1489,7 +1491,7 @@ void MediaInfo_Internal::Entry()
}

#ifdef WINDOWS
WindowsNamespace::Sleep(0);
Sleep(0);
#elif defined(_POSIX_PRIORITY_SCHEDULING)
sched_yield();
#endif //_POSIX_PRIORITY_SCHEDULING
Expand Down
2 changes: 1 addition & 1 deletion Source/ThirdParty/aes-gladman/aesopt.h
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ Issue Date: 20/12/2007
AES_REV_DKS must NOT be defined when such assembler files are
built
*/
#if 1 && defined( _WIN64 ) && defined( _MSC_VER )
#if 1 && defined( _WIN64 ) && defined( _MSC_VER ) && defined( _M_AMD64 )
# define INTEL_AES_POSSIBLE
#endif

Expand Down
1 change: 1 addition & 0 deletions Source/ThirdParty/aes-gladman/brg_endian.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ Issue Date: 20/12/2007
defined( __i386__ ) || defined( _M_I86 ) || defined( _M_IX86 ) || \
defined( __OS2__ ) || defined( sun386 ) || defined( __TURBOC__ ) || \
defined( vax ) || defined( vms ) || defined( VMS ) || \
defined( _M_ARM64 ) || defined ( _M_ARM ) || \
defined( __VMS ) || defined( _M_X64 )
# define PLATFORM_BYTE_ORDER IS_LITTLE_ENDIAN

Expand Down

0 comments on commit ce46d23

Please sign in to comment.