VirtualBox

Changeset 79772 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jul 14, 2019 9:11:30 PM (5 years ago)
Author:
vboxsync
Message:

Dhcpd: Main nits. bugref:9288

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/NetworkServices/Dhcpd/DhcpdInternal.h

    r79763 r79772  
    3434#include <vector>
    3535
    36 #if __cplusplus >= 199711
     36#ifndef IN_VBOXSVC
     37
     38# if __cplusplus >= 199711
    3739#include <memory>
    3840using std::shared_ptr;
    39 #else
    40 # include <tr1/memory>
     41# else
     42#  include <tr1/memory>
    4143using std::tr1::shared_ptr;
    42 #endif
     44# endif
    4345
     46class DhcpOption;
     47/** DHCP option map (keyed by option number, DhcpOption value). */
     48typedef std::map<uint8_t, std::shared_ptr<DhcpOption> > optmap_t;
     49
     50#endif /* !IN_VBOXSVC */
    4451
    4552/** Byte vector. */
     
    4855/** Raw DHCP option map (keyed by option number, byte vector value). */
    4956typedef std::map<uint8_t, octets_t> rawopts_t;
    50 
    51 #ifndef IN_VBOXSVC
    52 class DhcpOption;
    53 /** DHCP option map (keyed by option number, DhcpOption value). */
    54 typedef std::map<uint8_t, std::shared_ptr<DhcpOption> > optmap_t;
    55 #endif
    5657
    5758
Note: See TracChangeset for help on using the changeset viewer.

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