We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be6580d commit 72183ceCopy full SHA for 72183ce
lldb/test/API/macosx/simulator/hello.cpp
@@ -1,16 +1,8 @@
1
#include <stdio.h>
2
#include <thread>
3
-#if !defined(_WIN32)
4
#include <unistd.h>
5
-#endif
6
7
-static void print_pid() {
8
-#if defined(_WIN32)
9
- fprintf(stderr, "PID: %d\n", ::GetCurrentProcessId());
10
-#else
11
- fprintf(stderr, "PID: %d\n", getpid());
12
13
-}
+static void print_pid() { fprintf(stderr, "PID: %d\n", getpid()); }
14
15
static void sleep() { std::this_thread::sleep_for(std::chrono::seconds(10)); }
16
0 commit comments