VirtualBox

Changeset 72242 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
May 17, 2018 12:49:06 PM (7 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9049: Adjusting ifdefs for main.cpp, some stuff is used by non-hardened code of hardened build.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/main.cpp

    r71360 r72242  
    3939# ifdef VBOX_WITH_HARDENING
    4040#  include <VBox/sup.h>
    41 # else /* !VBOX_WITH_HARDENING */
     41# endif
     42# if !defined(VBOX_WITH_HARDENING) || defined(VBOX_GUI_WITH_SHARED_LIBRARY) && !defined(VBOX_RUNTIME_UI)
    4243#  include <iprt/initterm.h>
    4344#  ifdef VBOX_WS_MAC
    4445#   include <iprt/asm.h>
    45 #  endif /* VBOX_WS_MAC */
    46 # endif /* !VBOX_WITH_HARDENING */
     46#  endif
     47# endif
    4748# ifdef VBOX_WS_X11
    4849#  include <iprt/env.h>
    49 # endif /* VBOX_WS_X11 */
     50# endif
    5051
    5152#endif /* !VBOX_WITH_PRECOMPILED_HEADERS */
     
    516517}
    517518
    518 #ifndef VBOX_WITH_HARDENING
     519#if !defined(VBOX_WITH_HARDENING) || defined(VBOX_GUI_WITH_SHARED_LIBRARY) && !defined(VBOX_RUNTIME_UI)
    519520
    520521int main(int argc, char **argv, char **envp)
     
    611612}
    612613
    613 #else  /* VBOX_WITH_HARDENING */
    614 
     614#endif
     615
     616#ifdef VBOX_WITH_HARDENING
    615617
    616618/**
     
    731733
    732734#endif /* VBOX_WITH_HARDENING */
    733 
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