Debian Codegraph @

cmake/tribits/win_interface/include/winprocess.h

raw
1 // @HEADER
2 // *****************************************************************************
3 // TriBITS: Tribal Build, Integrate, and Test System
4 //
5 // Copyright 2013-2016 NTESS and the TriBITS contributors.
6 // SPDX-License-Identifier: BSD-3-Clause
7 // *****************************************************************************
8 // @HEADER
9
10 #ifdef _MSC_VER
11 # define NOMINMAX
12 # include <Winsock2.h>
13 # include <process.h>
14 # define getpid _getpid
15 inline void sleep(int sec)
16 {
17 Sleep(sec * 1000);
18 }
19 #pragma comment(lib, "Ws2_32.lib")
20 #endif