VirtualBox

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


Ignore:
Timestamp:
Jul 31, 2007 6:04:31 PM (17 years ago)
Author:
vboxsync
Message:

Fix to make the Linux keyboard code work with older versions of GCC

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/linux/keyboard_outofwine.h

    r3945 r3948  
    4545
    4646/* Exported definitions */
     47#ifdef VBOX_HAVE_VISIBILITY_HIDDEN
    4748extern __attribute__((visibility("default"))) void X11DRV_InitKeyboard(Display *dpy);
    4849extern __attribute__((visibility("default"))) void X11DRV_KeyEvent(Display *dpy, XEvent *event,
    4950                                                                   WINEKEYBOARDINFO *wKbInfo);
    5051extern __attribute__((visibility("default"))) int X11DRV_GetKeysymsPerKeycode(void);
     52#else
     53extern void X11DRV_InitKeyboard(Display *dpy);
     54extern void X11DRV_KeyEvent(Display *dpy, XEvent *event,
     55                                                                   WINEKEYBOARDINFO *wKbInfo);
     56extern int X11DRV_GetKeysymsPerKeycode(void);
     57#endif
    5158
    5259/* type definitions */
     
    6774}
    6875
    69 #define TRACE(...)
     76#define TRACE noop
    7077/* #define TRACE printf */
    7178#define TRACE_(a) noop
    7279/* #define TRACE_(ch) printf */
    7380#define TRACE_ON(a) 0
    74 #define WARN(...)
    75 #define ERR(...)
     81#define WARN noop
     82#define ERR noop
    7683
    7784/* @@@AH do we need semaphore protection? */
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