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

David Truby via flang-commits flang-commits at lists.llvm.org
Wed Nov 1 08:33:14 PDT 2023


================
@@ -11,6 +11,13 @@
 
 #include "flang/Runtime/entry-names.h"
 
+#ifdef _WIN32
+// On Windows* OS GetCurrentProcessId returns int (not pid_t)
+typedef int64 pid_t;
----------------
DavidTruby wrote:

`int64` isn't a valid type, you need `std::int64_t`. To bring that type into scope you'll need to move the `#include <cstdint>` from below to above this '#ifdef` but that shouldn't be an issue.

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


More information about the flang-commits mailing list