[flang-commits] [flang] [flang][runtime] Implement SLEEP intrinsic (PR #79074)

Kiran Chandramohan via flang-commits flang-commits at lists.llvm.org
Mon Jan 22 22:55:02 PST 2024


================
@@ -39,8 +40,10 @@ inline void CtimeBuffer(char *buffer, size_t bufsize, const time_t cur_time,
 #endif
 
 #if _REENTRANT || _POSIX_C_SOURCE >= 199506L
-// System is posix-compliant and has getlogin_r
+// System is posix-compliant and has getlogin_r and sleep
 #include <unistd.h>
+#elif _WIN32
+#include <windows.h> // for sleep
----------------
kiranchandramohan wrote:

Would that result in a call to the c++ lib?

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


More information about the flang-commits mailing list