NCBI C++ ToolKit
ncbi_os_mswin.h
Go to the documentation of this file.

Go to the SVN repository for this file.

1 #ifndef CORELIB___IMPL___NCBI_OS_MSWIN__H
2 #define CORELIB___IMPL___NCBI_OS_MSWIN__H
3 
4 /* $Id: ncbi_os_mswin.h 36649 2008-01-24 14:20:24Z vasilche $
5  * ===========================================================================
6  *
7  * PUBLIC DOMAIN NOTICE
8  * National Center for Biotechnology Information
9  *
10  * This software/database is a "United States Government Work" under the
11  * terms of the United States Copyright Act. It was written as part of
12  * the author's official duties as a United States Government employee and
13  * thus cannot be copyrighted. This software/database is freely available
14  * to the public for use. The National Library of Medicine and the U.S.
15  * Government have not placed any restriction on its use or reproduction.
16  *
17  * Although all reasonable efforts have been taken to ensure the accuracy
18  * and reliability of the software and data, the NLM and the U.S.
19  * Government do not and cannot warrant the performance or results that
20  * may be obtained by using this software or data. The NLM and the U.S.
21  * Government disclaim all warranties, express or implied, including
22  * warranties of performance, merchantability or fitness for any particular
23  * purpose.
24  *
25  * Please cite the author in any work or product based on this material.
26  *
27  * ===========================================================================
28  *
29  * Author: Denis Vakatov, Vladimir Ivanov
30  *
31  */
32 
33 /// @file ncbi_os_mswin.h
34 ///
35 /// Defines some MS Windows specifics for our "C" code.
36 /// Use this header in the place of <windows.h> when compiling "C" code.
37 ///
38 /// For "C++" code, use <corelib/ncbi_os_win.hpp>.
39 
40 
41 #include <ncbiconf.h>
42 
43 #if !defined(NCBI_OS_MSWIN)
44 # error "ncbi_os_mswin.hpp must be used on MS Windows platforms only"
45 #endif
46 
47 // Exclude some old stuff from <windows.h>.
48 #if defined(_MSC_VER) && (_MSC_VER > 1200)
49 # define WIN32_LEAN_AND_MEAN
50 #endif
51 #ifndef NOMINMAX
52 # define NOMINMAX
53 #endif
54 
55 
56 #include <windows.h>
57 
58 
59 // Beep
60 #if !defined(Beep)
61 /// Avoid a silly name clash between MS-Win and NCBI C Toolkit headers.
62 # define Beep Beep
63 #endif
64 
65 
66 #endif /* CORELIB___IMPL___NCBI_OS_MSWIN__H */
Front end for a platform-specific configuration summary.
Modified on Wed Sep 04 15:02:25 2024 by modify_doxy.py rev. 669887