[flang-commits] [llvm] [flang] [flang] GETPID runtime and lower intrinsic implementation (PR #70442)

Yi Wu via flang-commits flang-commits at lists.llvm.org
Wed Nov 1 08:48:15 PDT 2023


================
@@ -14,6 +14,14 @@
 #include "flang/Runtime/descriptor.h"
 #include <cstdlib>
 #include <limits>
+#ifdef _WIN32
+// On Windows* OS _getpid() returns int (not pid_t), declared in process.h
+#include <process.h>
+#define getpid _getpid
+typedef int pid_t;
----------------
PAX-12-WU wrote:

Done

https://github.com/llvm/llvm-project/pull/70442


More information about the flang-commits mailing list