diff --git a/ntfsprogs/ntfssecaudit.c b/ntfsprogs/ntfssecaudit.c index 9484a605..25b136b8 100644 --- a/ntfsprogs/ntfssecaudit.c +++ b/ntfsprogs/ntfssecaudit.c @@ -434,6 +434,16 @@ struct SDH { /* this is an image of an $SDH index entry */ } ; #ifdef HAVE_WINDOWS_H + +// Copied from minwindef.h. +#ifndef WINAPI +#if defined(_ARM_) +#define WINAPI +#else +#define WINAPI __stdcall +#endif +#endif + /* * Including leads to numerous conflicts with layout.h * so define a few needed Windows calls unrelated to ntfs-3g diff --git a/ntfsprogs/ntfsusermap.c b/ntfsprogs/ntfsusermap.c index 6c1f61b8..b4c41070 100644 --- a/ntfsprogs/ntfsusermap.c +++ b/ntfsprogs/ntfsusermap.c @@ -142,6 +142,16 @@ #include "misc.h" #ifdef HAVE_WINDOWS_H + +// Copied from minwindef.h. +#ifndef WINAPI +#if defined(_ARM_) +#define WINAPI +#else +#define WINAPI __stdcall +#endif +#endif + /* * Including leads to numerous conflicts with layout.h * so define a few needed Windows calls unrelated to ntfs-3g