summaryrefslogtreecommitdiff
path: root/zen/win.h
blob: 13ecf4e4e5abb123763d6fbb6321bf3b4d5244c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// **************************************************************************
// * This file is part of the FreeFileSync project. It is distributed under *
// * GNU General Public License: http://www.gnu.org/licenses/gpl-3.0        *
// * Copyright (C) Zenju (zenju AT gmx DOT de) - All Rights Reserved        *
// **************************************************************************

#ifndef YAWFWH_YET_ANOTHER_WRAPPER_FOR_WINDOWS_H
#define YAWFWH_YET_ANOTHER_WRAPPER_FOR_WINDOWS_H

#ifndef _WINSOCKAPI_ //prevent inclusion of winsock.h in windows.h: obsoleted by and conflicting with winsock2.h
    #define _WINSOCKAPI_
#endif

//------------------------------------------------------
#ifdef __WXMSW__ //we have wxWidgets
    #include <wx/msw/wrapwin.h> //includes "windows.h"
    //------------------------------------------------------
#else
    //#define WIN32_LEAN_AND_MEAN

    #ifndef NOMINMAX
        #define NOMINMAX
    #endif

    #ifndef STRICT
        #define STRICT //improve type checking
    #endif

    #include <windows.h>
#endif
//------------------------------------------------------

#endif //YAWFWH_YET_ANOTHER_WRAPPER_FOR_WINDOWS_H
bgstack15