VirtualBox

Changeset 95911 in vbox for trunk/src/VBox/Additions/x11


Ignore:
Timestamp:
Jul 28, 2022 1:05:29 PM (2 years ago)
Author:
vboxsync
Message:

Additions/x11: Build fix for missing _X_LIKELY and _X_UNLIKELY, bugref:8515

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/x11/vboxvideo/VBoxVideoIPRT.h

    r93115 r95911  
    6464#include <stdint.h>
    6565#if defined(IN_XF86_MODULE) && !defined(NO_ANSIC)
    66 /* XFree86 did not have these.  Not that I care much for micro-optimisations
    67  * in most cases anyway. */
    68 # define _X_LIKELY(x) (x)
    69 # define _X_UNLIKELY(x) (x)
    7066# ifndef offsetof
    7167#  define offsetof(type, member) ( (int)(uintptr_t)&( ((type *)(void *)0)->member) )
     
    7672# include <string.h>
    7773#endif  /* !(defined(IN_XF86_MODULE) && !defined(NO_ANSIC)) */
     74
     75/* XFree86 (and newer Xfuncproto.h) do not have these.  Not that I care much for micro-optimisations
     76 * in most cases anyway. */
     77#ifndef _X_LIKELY
     78# define _X_LIKELY(x) (x)
     79#endif
     80#ifndef _X_UNLIKELY
     81# define _X_UNLIKELY(x) (x)
     82#endif
    7883
    7984RT_C_DECLS_BEGIN
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