diff options
Diffstat (limited to 'xorg-server/hw/xwin/winmsg.h')
-rw-r--r-- | xorg-server/hw/xwin/winmsg.h | 40 |
1 files changed, 14 insertions, 26 deletions
diff --git a/xorg-server/hw/xwin/winmsg.h b/xorg-server/hw/xwin/winmsg.h index b638f2cb3..beb6683ed 100644 --- a/xorg-server/hw/xwin/winmsg.h +++ b/xorg-server/hw/xwin/winmsg.h @@ -33,33 +33,21 @@ /* * Function prototypes */ + +#include "os.h" -void -winDrvMsgVerb(int scrnIndex, - MessageType type, int verb, const char *format, ...) -_X_ATTRIBUTE_PRINTF(4, 5); -void -winDrvMsg(int scrnIndex, MessageType type, const char *format, ...) -_X_ATTRIBUTE_PRINTF(3, 4); -void -winMsgVerb(MessageType type, int verb, const char *format, ...) -_X_ATTRIBUTE_PRINTF(3, 4); -void -winMsg(MessageType type, const char *format, ...) -_X_ATTRIBUTE_PRINTF(2, 3); -void -winDebug(const char *format, ...) -_X_ATTRIBUTE_PRINTF(1, 2); -void -winTrace(const char *format, ...) -_X_ATTRIBUTE_PRINTF(1, 2); +#if !defined(_MSC_VER) || defined(_DEBUG) +#define WINDBG +void winDebug (const char *format, ...); +void winDebug4 (const char *format, ...); +void winDebugWin32Message(const char* function, HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam); +#else +#define winDebug(...) +#define winDebug4(...) +#define winDebugWin32Message(...) +#endif -void -winErrorFVerb(int verb, const char *format, ...) -_X_ATTRIBUTE_PRINTF(2, 3); -void winW32Error(int verb, const char *message); -void winW32ErrorEx(int verb, const char *message, DWORD errorcode); -void winDebugWin32Message(const char *function, HWND hwnd, UINT message, - WPARAM wParam, LPARAM lParam); +void winW32Error(const char *message); +void winW32ErrorEx(const char *message, DWORD errorcode); #endif |