Skip to content

Commit f4c7a69

Browse files
author
kroening
committed
platform guards
git-svn-id: svn+ssh://svn.cprover.org/srv/svn/cbmc/trunk@1856 6afb6bc1-c8e4-404c-8f48-9ae832c5b171
1 parent 70a2933 commit f4c7a69

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/ansi-c/library/windows.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/* FUNCTION: QueryPerformanceFrequency */
22

3+
#ifdef _WIN32
34
#include <windows.h>
45

56
BOOL QueryPerformanceFrequency(LARGE_INTEGER *lpFrequency)
@@ -12,19 +13,23 @@ BOOL QueryPerformanceFrequency(LARGE_INTEGER *lpFrequency)
1213
__CPROVER_assume(result!=0);
1314
return 1;
1415
}
16+
#endif
1517

1618
/* FUNCTION: ExitThread */
1719

20+
#ifdef _WIN32
1821
#include <windows.h>
1922

2023
inline VOID ExitThread(DWORD dwExitCode)
2124
{
2225
// never returns
2326
__CPROVER_assume(0);
2427
}
28+
#endif
2529

2630
/* FUNCTION: CreateThread */
2731

32+
#ifdef _WIN32
2833
#include <windows.h>
2934

3035
inline HANDLE CreateThread(
@@ -45,3 +50,4 @@ inline HANDLE CreateThread(
4550
HANDLE handle;
4651
return handle;
4752
}
53+
#endif

0 commit comments

Comments
 (0)