summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2021-12-14 20:44:04 +0100
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2021-12-14 20:54:40 +0100
commit8e1a2644968ce048feecd7f480ed4cce7dec7f6b (patch)
treeae926a0dd3e91176c90409a32433f9bc388cfe25
parent8297b3faf8606762b176d57637f2ec5f84601e0d (diff)
Fix Windows main wrapper after mingw upgrade
Apparently, mingw implicitly included stdlib.h indirectly from either windows.h or shellapi.h. After an upgrade, the windows build now fails with EXIT_FAILURE being undefined. Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
-rw-r--r--lib/compat/w32_wmain.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/compat/w32_wmain.c b/lib/compat/w32_wmain.c
index 4245d1c..9b3e354 100644
--- a/lib/compat/w32_wmain.c
+++ b/lib/compat/w32_wmain.c
@@ -8,6 +8,7 @@
#include "compat.h"
#include <stdio.h>
+#include <stdlib.h>
#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN