From 80cff47c876c85f761d169f05ef712bb1200bb36 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Wed, 20 Dec 2006 14:26:08 +0100 Subject: [PATCH] include: Get rid of the WINE_NO_LONG_AS_INT ifdefs. --- include/guiddef.h | 2 +- include/windef.h | 2 +- include/wine/debug.h | 16 ---------------- include/wine/test.h | 4 ---- include/winnt.h | 2 +- 5 files changed, 3 insertions(+), 23 deletions(-) diff --git a/include/guiddef.h b/include/guiddef.h index 507eb5a1a5..f0799830f8 100644 --- a/include/guiddef.h +++ b/include/guiddef.h @@ -20,7 +20,7 @@ #define GUID_DEFINED typedef struct _GUID { -#if defined(_MSC_VER) || (defined(WINE_NO_LONG_AS_INT) && !defined(_WIN64)) +#ifdef _MSC_VER unsigned long Data1; #else unsigned int Data1; diff --git a/include/windef.h b/include/windef.h index 6106b7a347..fd3d4233b3 100644 --- a/include/windef.h +++ b/include/windef.h @@ -196,7 +196,7 @@ typedef int INT, *PINT, *LPINT; typedef unsigned int UINT, *PUINT; typedef float FLOAT, *PFLOAT; typedef char *PSZ; -#if defined(_MSC_VER) || (defined(WINE_NO_LONG_AS_INT) && !defined(_WIN64)) +#ifdef _MSC_VER typedef long *LPLONG; typedef unsigned long DWORD, *PDWORD, *LPDWORD; typedef unsigned long ULONG, *PULONG; diff --git a/include/wine/debug.h b/include/wine/debug.h index 661f6d6d6d..c1ef2b5314 100644 --- a/include/wine/debug.h +++ b/include/wine/debug.h @@ -187,11 +187,7 @@ static inline const char *wine_dbgstr_guid( const GUID *id ) { if (!id) return "(null)"; if (!((INT_PTR)id >> 16)) return wine_dbg_sprintf( "", (INT_PTR)id & 0xffff ); -#if defined(WINE_NO_LONG_AS_INT) && !defined(_WIN64) - return wine_dbg_sprintf( "{%08lx-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x}", -#else return wine_dbg_sprintf( "{%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x}", -#endif id->Data1, id->Data2, id->Data3, id->Data4[0], id->Data4[1], id->Data4[2], id->Data4[3], id->Data4[4], id->Data4[5], id->Data4[6], id->Data4[7] ); @@ -200,32 +196,20 @@ static inline const char *wine_dbgstr_guid( const GUID *id ) static inline const char *wine_dbgstr_point( const POINT *pt ) { if (!pt) return "(null)"; -#if defined(WINE_NO_LONG_AS_INT) && !defined(_WIN64) - return wine_dbg_sprintf( "(%ld,%ld)", pt->x, pt->y ); -#else return wine_dbg_sprintf( "(%d,%d)", pt->x, pt->y ); -#endif } static inline const char *wine_dbgstr_size( const SIZE *size ) { if (!size) return "(null)"; -#if defined(WINE_NO_LONG_AS_INT) && !defined(_WIN64) - return wine_dbg_sprintf( "(%ld,%ld)", size->cx, size->cy ); -#else return wine_dbg_sprintf( "(%d,%d)", size->cx, size->cy ); -#endif } static inline const char *wine_dbgstr_rect( const RECT *rect ) { if (!rect) return "(null)"; -#if defined(WINE_NO_LONG_AS_INT) && !defined(_WIN64) - return wine_dbg_sprintf( "(%ld,%ld)-(%ld,%ld)", rect->left, rect->top, rect->right, rect->bottom ); -#else return wine_dbg_sprintf( "(%d,%d)-(%d,%d)", rect->left, rect->top, rect->right, rect->bottom ); -#endif } static inline const char *wine_dbgstr_longlong( ULONGLONG ll ) diff --git a/include/wine/test.h b/include/wine/test.h index 8ef8a31a39..eed9d1a445 100644 --- a/include/wine/test.h +++ b/include/wine/test.h @@ -371,11 +371,7 @@ static int run_test( const char *name ) if (winetest_debug) { -#if defined(WINE_NO_LONG_AS_INT) && !defined(_WIN64) - fprintf( stdout, "%s: %ld tests executed, %ld marked as todo, %ld %s.\n", -#else fprintf( stdout, "%s: %d tests executed, %d marked as todo, %d %s.\n", -#endif name, successes + failures + todo_successes + todo_failures, todo_successes, failures + todo_failures, (failures + todo_failures != 1) ? "failures" : "failure" ); diff --git a/include/winnt.h b/include/winnt.h index 651e507fad..47653eb91f 100644 --- a/include/winnt.h +++ b/include/winnt.h @@ -319,7 +319,7 @@ typedef VOID *PVOID64; typedef BYTE BOOLEAN, *PBOOLEAN; typedef char CHAR, *PCHAR; typedef short SHORT, *PSHORT; -#if defined(_MSC_VER) || (defined(WINE_NO_LONG_AS_INT) && !defined(_WIN64)) +#ifdef _MSC_VER typedef long LONG, *PLONG; #else typedef int LONG, *PLONG;