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

David Truby via flang-commits flang-commits at lists.llvm.org
Fri Nov 3 07:59:30 PDT 2023


================
@@ -15,6 +15,14 @@
 #include <cstdlib>
 #include <limits>
 
+#ifdef _WIN32
+// On Windows GetCurrentProcessId returns a DWORD aka uint32_t
----------------
DavidTruby wrote:

You're missing:
```
#define WIN32_LEAN_AND_MEAN
#define NOMINMAX
#include <windows.h>
```
just above `#include <processthreadsapi.h>`. 
You can't include processthreadsapi.h without windows.h having been included at some point previously

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


More information about the flang-commits mailing list