Author: fireball
Date: Sun Nov 18 16:29:57 2007
New Revision: 30543
URL:
http://svn.reactos.org/svn/reactos?rev=30543&view=rev
Log:
- MSVC compatibility fix (inline -> __inline).
Modified:
trunk/reactos/include/reactos/wine/debug.h
Modified: trunk/reactos/include/reactos/wine/debug.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/reactos/wine/debug…
==============================================================================
--- trunk/reactos/include/reactos/wine/debug.h (original)
+++ trunk/reactos/include/reactos/wine/debug.h Sun Nov 18 16:29:57 2007
@@ -180,17 +180,17 @@
extern int wine_dbg_log( enum __wine_debug_class cls, struct __wine_debug_channel *ch,
const char *file,
const char *func, const int line, const char *format, ... )
__WINE_PRINTF_ATTR(6,7);
-static inline const char *wine_dbgstr_a( const char *s )
+static __inline const char *wine_dbgstr_a( const char *s )
{
return wine_dbgstr_an( s, -1 );
}
-static inline const char *wine_dbgstr_w( const WCHAR *s )
+static __inline const char *wine_dbgstr_w( const WCHAR *s )
{
return wine_dbgstr_wn( s, -1 );
}
-static inline const char *wine_dbgstr_guid( const GUID *id )
+static __inline const char *wine_dbgstr_guid( const GUID *id )
{
if (!id) return "(null)";
if (!((INT_PTR)id >> 16)) return wine_dbg_sprintf(
"<guid-0x%04x>", (INT_PTR)id & 0xffff );
@@ -200,26 +200,26 @@
id->Data4[4], id->Data4[5], id->Data4[6],
id->Data4[7] );
}
-static inline const char *wine_dbgstr_point( const POINT *pt )
+static __inline const char *wine_dbgstr_point( const POINT *pt )
{
if (!pt) return "(null)";
return wine_dbg_sprintf( "(%ld,%ld)", pt->x, pt->y );
}
-static inline const char *wine_dbgstr_size( const SIZE *size )
+static __inline const char *wine_dbgstr_size( const SIZE *size )
{
if (!size) return "(null)";
return wine_dbg_sprintf( "(%ld,%ld)", size->cx, size->cy );
}
-static inline const char *wine_dbgstr_rect( const RECT *rect )
+static __inline const char *wine_dbgstr_rect( const RECT *rect )
{
if (!rect) return "(null)";
return wine_dbg_sprintf( "(%ld,%ld)-(%ld,%ld)", rect->left,
rect->top,
rect->right, rect->bottom );
}
-static inline const char *wine_dbgstr_longlong( ULONGLONG ll )
+static __inline const char *wine_dbgstr_longlong( ULONGLONG ll )
{
if (sizeof(ll) > sizeof(unsigned long) && ll >> 32)
return wine_dbg_sprintf( "%lx%08lx", (unsigned long)(ll >> 32),
(unsigned long)ll );
@@ -259,11 +259,11 @@
/* Wine uses shorter names that are very likely to conflict with other software */
-static inline const char *debugstr_an( const char * s, int n ) { return wine_dbgstr_an(
s, n ); }
-static inline const char *debugstr_wn( const WCHAR *s, int n ) { return wine_dbgstr_wn(
s, n ); }
-static inline const char *debugstr_guid( const struct _GUID *id ) { return
wine_dbgstr_guid(id); }
-static inline const char *debugstr_a( const char *s ) { return wine_dbgstr_an( s, -1 );
}
-static inline const char *debugstr_w( const WCHAR *s ) { return wine_dbgstr_wn( s, -1 );
}
+static __inline const char *debugstr_an( const char * s, int n ) { return wine_dbgstr_an(
s, n ); }
+static __inline const char *debugstr_wn( const WCHAR *s, int n ) { return wine_dbgstr_wn(
s, n ); }
+static __inline const char *debugstr_guid( const struct _GUID *id ) { return
wine_dbgstr_guid(id); }
+static __inline const char *debugstr_a( const char *s ) { return wine_dbgstr_an( s, -1
); }
+static __inline const char *debugstr_w( const WCHAR *s ) { return wine_dbgstr_wn( s, -1
); }
#define TRACE WINE_TRACE
#define TRACE_(ch) WINE_TRACE_(ch)