[flang] [llvm] [clang-tools-extra] [clang] [flang ]GETLOG runtime and extension implementation: get login username (PR #70917)
David Truby via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 14 06:56:37 PST 2023
================
@@ -13,6 +13,44 @@
#include "flang/Runtime/command.h"
#include "flang/Runtime/descriptor.h"
#include "flang/Runtime/io-api.h"
+#include <string.h>
+
+#ifdef _WIN32
+#define WIN32_LEAN_AND_MEAN
+#define NOMINMAX
+#include <windows.h>
+
+#include <lmcons.h> // UNLEN=256
+#include <stdlib.h> // wcstombs_s
----------------
DavidTruby wrote:
`cstdlib` instead of `stdlib.h`
https://github.com/llvm/llvm-project/pull/70917
More information about the cfe-commits
mailing list