VirtualBox

Ignore:
Timestamp:
May 31, 2017 2:59:02 PM (8 years ago)
Author:
vboxsync
Message:

bugref:8524: Additions/linux: play nicely with distribution-installed Additions
[PATCH 3/3] additions/linux/drm: Remove dependency on iprt/cdefs,stdarg,stdint and types.h
Signed-off-by: Hans de Goede <hdegoede@…>
With a small fix to remove a left-over IPRT symbol.

Location:
trunk/src/VBox/Additions/linux/drm
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/drm/VBoxVideoIPRT.h

    r67169 r67177  
    3030
    3131#include <asm/io.h>
    32 #include <iprt/cdefs.h>
    33 #include <iprt/stdarg.h>
    34 #include <iprt/stdint.h>
    35 #include <iprt/types.h>
    36 
    3732#include <linux/string.h>
     33#include <linux/version.h>
    3834
    3935/** @name VirtualBox error macros
     
    8379    AssertCompile(sizeof(type) == (size))
    8480
     81#define VALID_PTR(p) (p != NULL)
     82
    8583/** @}  */
    8684
     
    115113typedef uint32_t HGSMIOFFSET;
    116114
     115typedef void RTRECT;
     116
     117#define UINT32_C(val)           (val ## U)
     118#define UINT32_MAX              UINT32_C(0xffffffff)
     119
     120/** @}  */
     121
     122/** @name iprt/desc.h replacement macros
     123 * @{ */
     124
     125#define RT_C_DECLS_BEGIN
     126#define RT_C_DECLS_END
     127#define DECLCALLBACK(type) type
     128#define DECLCALLBACKMEMBER(type, name) type (*name)
     129#define DECLHIDDEN(type) __attribute__((visibility("hidden"))) type
     130#define DECLINLINE(type) static __inline__ type
     131#define RT_BOOL(val) (!!(val))
     132#define RT_BIT BIT
     133#define _1K 0x00000400
     134
    117135/** @}  */
    118136
  • trunk/src/VBox/Additions/linux/drm/files_vboxvideo_drv

    r67169 r67177  
    2121    ${PATH_OUT}/revision-generated.h=>revision-generated.h \
    2222    ${PATH_OUT}/product-generated.h=>product-generated.h \
    23     ${PATH_ROOT}/include/iprt/cdefs.h=>include/iprt/cdefs.h \
    24     ${PATH_ROOT}/include/iprt/stdarg.h=>include/iprt/stdarg.h \
    25     ${PATH_ROOT}/include/iprt/stdint.h=>include/iprt/stdint.h \
    26     ${PATH_ROOT}/include/iprt/types.h=>include/iprt/types.h \
    2723    ${PATH_ROOT}/include/VBox/Graphics/VBoxVideo.h=>include/VBoxVideo.h \
    2824    ${PATH_ROOT}/include/VBox/Graphics/VBoxVideoGuest.h=>include/VBoxVideoGuest.h \
  • trunk/src/VBox/Additions/linux/drm/vbox_drv.c

    r66544 r67177  
    327327MODULE_LICENSE("GPL and additional rights");
    328328#ifdef MODULE_VERSION
    329 MODULE_VERSION(VBOX_VERSION_STRING " r" RT_XSTR(VBOX_SVN_REV));
    330 #endif
     329MODULE_VERSION(VBOX_VERSION_STRING " r" __stringify(VBOX_SVN_REV));
     330#endif
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