]> granicus.if.org Git - graphviz/commitdiff
remove legacy malloc.h includes
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 3 Jul 2020 19:51:05 +0000 (12:51 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 3 Jul 2020 19:51:05 +0000 (12:51 -0700)
This header was superseded by stdlib.h. Related to #1242.

cmd/lefty/aix_mods/common.h
cmd/lefty/common.h
lib/common/memory.h
lib/pathplan/route.c
lib/pathplan/shortest.c

index 9443926cb128707206cc010a27e2fbd76f0d4fd5..e3cc933987ae5141ce45ce5d7e99ec0b50a65045 100644 (file)
@@ -39,7 +39,6 @@ extern "C" {
 #ifdef _WIN32
 #include <windows.h>
 #include <commdlg.h>
-#include <malloc.h>
 #endif
 
 #define POS __FILE__, __LINE__
index 1f5758a19aff706b315b49bbc1c01f0da9a66172..031c1004d4f8c9f3a3e0ba1f72f30439b7166eba 100644 (file)
@@ -64,7 +64,6 @@ extern "C" {
 #endif
 
 #ifdef FEATURE_MS
-#include <malloc.h>
 #define printf gprintf
 #endif
 
index cccea10708e414f931e632762767cd63a4dba586..12bec35c33abe027a41b1df499b404e41324382a 100644 (file)
@@ -15,9 +15,6 @@
 #define GV_MEMORY_H
 
 #include <stdlib.h>
-#ifdef HAVE_MALLOC_H
-#include <malloc.h>
-#endif
 
 #ifdef __cplusplus
 extern "C" {
index 0a16c61e05b514ee159fd7d1f4a12b84ad201fc4..bf253f73f36be769ba01d35e3acae30b6f6becc8 100644 (file)
@@ -15,9 +15,7 @@
 #include <stdlib.h>
 #include <stdio.h>
 #include <setjmp.h>
-#ifdef HAVE_MALLOC_H
-#include <malloc.h>
-#endif
+#include <stdlib.h>
 #include <math.h>
 #include "pathutil.h"
 #include "solvers.h"
index 2a81b7623a674434622de4609c9adb711741e69f..40dd055ad37fca7657fbc91a65b9cbad05b8040c 100644 (file)
@@ -15,9 +15,7 @@
 #include <stdlib.h>
 #include <stdio.h>
 #include <setjmp.h>
-#ifdef HAVE_MALLOC_H
-#include <malloc.h>
-#endif
+#include <stdlib.h>
 #include <limits.h>
 #include <math.h>
 #include "pathutil.h"