File fixes_for_leap42.patch of Package virtualbox.openSUSE_Leap_42.3_Update

Index: VirtualBox-5.2.16/include/VBox/Graphics/VBoxVideoGuest.h
===================================================================
--- VirtualBox-5.2.16.orig/include/VBox/Graphics/VBoxVideoGuest.h
+++ VirtualBox-5.2.16/include/VBox/Graphics/VBoxVideoGuest.h
@@ -62,7 +62,7 @@ typedef struct VBVABUFFERCONTEXT
 /** @name Base HGSMI APIs
  * @{ */
 
-DECLHIDDEN(bool)     VBoxHGSMIIsSupported(void);
+bool     VBoxHGSMIIsSupported(void);
 DECLHIDDEN(void)     VBoxHGSMIGetBaseMappingInfo(uint32_t cbVRAM,
                                                  uint32_t *poffVRAMBaseMapping,
                                                  uint32_t *pcbMapping,
Index: VirtualBox-5.2.16/src/VBox/Additions/common/VBoxVideo/HGSMIBase.cpp
===================================================================
--- VirtualBox-5.2.16.orig/src/VBox/Additions/common/VBoxVideo/HGSMIBase.cpp
+++ VirtualBox-5.2.16/src/VBox/Additions/common/VBoxVideo/HGSMIBase.cpp
@@ -36,7 +36,7 @@
 #include <HGSMIChSetup.h>
 
 /** Detect whether HGSMI is supported by the host. */
-DECLHIDDEN(bool) VBoxHGSMIIsSupported(void)
+bool VBoxHGSMIIsSupported(void)
 {
     uint16_t DispiId;
 
Index: VirtualBox-5.2.16/include/iprt/cdefs.h
===================================================================
--- VirtualBox-5.2.16.orig/include/iprt/cdefs.h
+++ VirtualBox-5.2.16/include/iprt/cdefs.h
@@ -1212,11 +1212,7 @@
  * How to declare a non-exported function or variable.
  * @param   type    The return type of the function or the data type of the variable.
  */
-#if !defined(RT_GCC_SUPPORTS_VISIBILITY_HIDDEN) || defined(RT_NO_VISIBILITY_HIDDEN)
 # define DECLHIDDEN(type)       type
-#else
-# define DECLHIDDEN(type)       __attribute__((visibility("hidden"))) type
-#endif
 
 /** @def DECL_HIDDEN_CONST
  * Workaround for g++ warnings when applying the hidden attribute to a const
@@ -1224,11 +1220,7 @@
  * @param   a_Type      The return type of the function or the data type of
  *                      the variable.
  */
-#if defined(__cplusplus) && defined(__GNUC__)
 # define DECL_HIDDEN_CONST(a_Type)   a_Type
-#else
-# define DECL_HIDDEN_CONST(a_Type)   DECLHIDDEN(a_Type)
-#endif
 
 /** @def DECL_INVALID
  * How to declare a function not available for linking in the current context.
openSUSE Build Service is sponsored by