[v4,1/2] windows: include winapifamily header for macros
Checks
Commit Message
Include winapifamily.h for WINAPI_FAMILY macro and provide a definition
of WINAPI_FAMILY_PHONE_APP if not present (happens compiling under
mingw)
Signed-off-by: Tyler Retzlaff <roretzla@linux.microsoft.com>
---
lib/eal/windows/include/dirent.h | 6 ++++++
1 file changed, 6 insertions(+)
Comments
2024-01-08 15:38 (UTC-0800), Tyler Retzlaff:
> Include winapifamily.h for WINAPI_FAMILY macro and provide a definition
> of WINAPI_FAMILY_PHONE_APP if not present (happens compiling under
> mingw)
Given this explanation, I think the subject should be:
eal/windows: make dirent.h shim compatible with MinGW
Acked-by: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>
@@ -8,6 +8,12 @@
#ifndef DIRENT_H
#define DIRENT_H
+#include <winapifamily.h>
+
+#ifndef WINAPI_FAMILY_PHONE_APP
+#define WINAPI_FAMILY_PHONE_APP 3
+#endif
+
/*
* Include windows.h without Windows Sockets 1.1 to prevent conflicts with
* Windows Sockets 2.0.