Skip to content

Commit 72183ce

Browse files
committed
Remove windows code from hello.cpp
1 parent be6580d commit 72183ce

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

lldb/test/API/macosx/simulator/hello.cpp

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,8 @@
11
#include <stdio.h>
22
#include <thread>
3-
#if !defined(_WIN32)
43
#include <unistd.h>
5-
#endif
64

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-
#endif
13-
}
5+
static void print_pid() { fprintf(stderr, "PID: %d\n", getpid()); }
146

157
static void sleep() { std::this_thread::sleep_for(std::chrono::seconds(10)); }
168

0 commit comments

Comments
 (0)