VirtualBox

Changeset 6779 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
Feb 4, 2008 10:49:52 AM (17 years ago)
Author:
vboxsync
Message:

Additions/common: define our own prototypes for the reduced XFree86 guest library instead of trying to include the X server headers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibGR.cpp

    r6538 r6779  
    2121*******************************************************************************/
    2222#ifdef VBOX_VBGLR3_XFREE86
    23 /* For the definitions of standard X server library functions like xalloc. */
    24 /* Make the headers C++-compatible */
    25 # define class xf86_vbox_class
    26 # define bool xf86_vbox_bool
    27 # define private xf86_vbox_private
    28 # define new xf86_vbox_new
    29 extern "C"
    30 {
    31 # include "xf86.h"
    32 # include "xf86_OSproc.h"
    33 # include "xf86Resources.h"
    34 # include "xf86_ansic.h"
    35 }
    36 # undef class
    37 # undef bool
    38 # undef private
    39 # undef new
     23/* Rather than try to resolve all the header file conflicts, I will just
     24   prototype what we need here. */
     25# define xalloc(size) Xalloc((unsigned long)(size))
     26# define xfree(ptr) Xfree((pointer)(ptr))
     27typedef void *pointer;
     28extern "C" pointer Xalloc(unsigned long /*amount*/);
     29extern "C" void Xfree(pointer /*ptr*/);
    4030#else
    4131# include <iprt/mem.h>
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