[glib/wip/pwithnall/thread-settings-fixes] tests: Fix header inclusion in win32-appinfo.c



commit 03380a49286e267c974b583b1d2e5dc8e3a507d4
Author: Philip Withnall <withnall endlessm com>
Date:   Mon Jan 20 15:22:03 2020 +0000

    tests: Fix header inclusion in win32-appinfo.c
    
    This fixes the following build failure on FreeBSD:
    ```
      In file included from ../gio/tests/win32-appinfo.c:24:
      /usr/include/malloc.h:3:2: error: "<malloc.h> has been replaced by <stdlib.h>"
      #error "<malloc.h> has been replaced by <stdlib.h>"
    ```
    
    Hopefully it doesn’t break Windows.
    
    Signed-off-by: Philip Withnall <withnall endlessm com>

 gio/tests/win32-appinfo.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gio/tests/win32-appinfo.c b/gio/tests/win32-appinfo.c
index 2036917dc..78052c348 100644
--- a/gio/tests/win32-appinfo.c
+++ b/gio/tests/win32-appinfo.c
@@ -21,7 +21,7 @@
 
 #include <glib/glib.h>
 #include <gio/gio.h>
-#include <malloc.h>
+#include <stdlib.h>
 
 #include "../giowin32-private.c"
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]