2 Copyright 2005-2011 Intel Corporation. All Rights Reserved.
4 This file is part of Threading Building Blocks.
6 Threading Building Blocks is free software; you can redistribute it
7 and/or modify it under the terms of the GNU General Public License
8 version 2 as published by the Free Software Foundation.
10 Threading Building Blocks is distributed in the hope that it will be
11 useful, but WITHOUT ANY WARRANTY; without even the implied warranty
12 of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with Threading Building Blocks; if not, write to the Free Software
17 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19 As a special exception, you may use this file as part of a free software
20 library without restriction. Specifically, if other files instantiate
21 templates or use macros or inline functions from this file, or you compile
22 this file and link it with other files to produce an executable, this
23 file does not by itself cause the resulting executable to be covered by
24 the GNU General Public License. This exception does not however
25 invalidate any other reasons why the executable file might be covered by
26 the GNU General Public License.
29 #ifndef __TBB_machine_windows_api_H
30 #define __TBB_machine_windows_api_H
40 #else // Assume "usual" Windows
46 #if !defined(_WIN32_WINNT)
47 // The following Windows API function is declared explicitly;
48 // otherwise any user would have to specify /D_WIN32_WINNT=0x0400
49 extern "C" BOOL WINAPI TryEnterCriticalSection( LPCRITICAL_SECTION );
53 #error tbb/machine/windows_api.h should only be used for Windows based platforms
54 #endif // _WIN32 || _WIN64
56 #endif // __TBB_machine_windows_api_H