[Openmp-commits] [openmp] [flang][OMP] change malloc.h to stdlib.h in collapse_test.inc (NFC) (PR #122711)

Kelvin Li via Openmp-commits openmp-commits at lists.llvm.org
Mon Jan 13 06:23:25 PST 2025


https://github.com/kkwli created https://github.com/llvm/llvm-project/pull/122711

`malloc.h` is in `.../usr/include/malloc/malloc.h` on MacOS. Using `stdlib.h` works for Mac and other platforms.

>From b2080ac8a67957b1a74dcc40396dc1b3f4a8fd07 Mon Sep 17 00:00:00 2001
From: Kelvin Li <kkwli0 at gmail.com>
Date: Sun, 12 Jan 2025 00:15:47 -0500
Subject: [PATCH] [flang] change malloc.h to stdlib.h (NFC)

---
 openmp/runtime/test/worksharing/for/collapse_test.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/openmp/runtime/test/worksharing/for/collapse_test.inc b/openmp/runtime/test/worksharing/for/collapse_test.inc
index 3075bd04e958fc..52f919dfbcc7d5 100644
--- a/openmp/runtime/test/worksharing/for/collapse_test.inc
+++ b/openmp/runtime/test/worksharing/for/collapse_test.inc
@@ -1,5 +1,5 @@
 #include <omp.h>
-#include <malloc.h>
+#include <stdlib.h>
 #include <stdio.h>
 #include <memory.h>
 



More information about the Openmp-commits mailing list