VirtualBox

Changeset 60509 in vbox for trunk/src


Ignore:
Timestamp:
Apr 14, 2016 5:29:15 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
106619
Message:

Main/Console+Host: winsock2 include fixing

Location:
trunk/src/VBox/Main
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp

    r60411 r60509  
    2525*   Header Files                                                                                                                 *
    2626*********************************************************************************************************************************/
    27 /* For some reason Windows burns in sdk\...\winsock.h if this isn't included first. */
    28 #include "VBox/com/ptr.h"
     27
     28// VBoxNetCfg-win.h needs winsock2.h and thus MUST be included before any other
     29// header file includes Windows.h.
     30#if defined(RT_OS_WINDOWS) && defined(VBOX_WITH_NETFLT)
     31# include <VBox/VBoxNetCfg-win.h>
     32#endif
    2933
    3034#include "ConsoleImpl.h"
     
    108112# endif
    109113# if defined(RT_OS_WINDOWS)
    110 #  include <VBox/VBoxNetCfg-win.h>
    111114#  include <Ntddndis.h>
    112115#  include <devguid.h>
  • trunk/src/VBox/Main/src-server/HostImpl.cpp

    r60107 r60509  
    55
    66/*
    7  * Copyright (C) 2004-2015 Oracle Corporation
     7 * Copyright (C) 2004-2016 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    1919#define __STDC_CONSTANT_MACROS
    2020
     21// VBoxNetCfg-win.h needs winsock2.h and thus MUST be included before any other
     22// header file includes Windows.h.
     23#if defined(RT_OS_WINDOWS) && defined(VBOX_WITH_NETFLT)
     24# include <VBox/VBoxNetCfg-win.h>
     25#endif
     26
    2127// for some reason Windows burns in sdk\...\winsock.h if this isn't included first
    2228#include "VBox/com/ptr.h"
     
    5359# include "PerformanceImpl.h"
    5460#endif /* VBOX_WITH_RESOURCE_USAGE_API */
    55 
    56 #if defined(RT_OS_WINDOWS) && defined(VBOX_WITH_NETFLT)
    57 # include <VBox/VBoxNetCfg-win.h>
    58 #endif /* #if defined(RT_OS_WINDOWS) && defined(VBOX_WITH_NETFLT) */
    5961
    6062#if defined(RT_OS_DARWIN) && ARCH_BITS == 32
     
    125127# include <shlobj.h>
    126128# include <cfgmgr32.h>
    127 
     129# include <tchar.h>
    128130#endif /* RT_OS_WINDOWS */
    129131
  • trunk/src/VBox/Main/src-server/win/NetIf-win.cpp

    r59087 r60509  
    55
    66/*
    7  * Copyright (C) 2008-2012 Oracle Corporation
     7 * Copyright (C) 2008-2016 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    3333#include <ws2tcpip.h>
    3434#include <windows.h>
     35#include <tchar.h>
    3536
    3637#ifdef VBOX_WITH_NETFLT
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette