shithub: dav1d

Download patch

ref: 287ba91b2b84376f0ae7f823c11e2b4a017630f4
parent: 8e5f126f8fd53f7385afb71e74ca8786efcf8971
author: Dale Curtis <dalecurtis@google.com>
date: Thu Nov 1 20:34:08 EDT 2018

Include <stdlib.h> for win32/thread.c

Fixes compilation error on implicitly declared malloc()/free()
due to missing this header. Alphabetizes headers for style too.

Signed-off-by: Dale Curtis <dalecurtis@chromium.org>

--- a/src/win32/thread.c
+++ b/src/win32/thread.c
@@ -29,9 +29,10 @@
 
 #if defined(_WIN32)
 
-#include <windows.h>
-#include <process.h>
 #include <errno.h>
+#include <process.h>
+#include <stdlib.h>
+#include <windows.h>
 
 #include "config.h"
 #include "src/thread.h"