1 /* 2 * $Id: w32vile.h,v 1.10 2014/03/24 23:03:08 tom Exp $ 3 * 4 * Do the pragmas in a separate file to avoid contaminating portable code. 5 */ 6 #ifndef W32VILE_H_incl 7 #define W32VILE_H_incl 1 8 9 #ifndef __GNUC__ 10 #pragma warning (disable : 4100) /* unreferenced formal parameter */ 11 #pragma warning (disable : 4127) /* conditional expression is constant */ 12 #pragma warning (disable : 4201) /* nameless struct/union */ 13 #pragma warning (disable : 4214) /* bit field types other than int */ 14 #pragma warning (disable : 4310) /* cast truncates constant value */ 15 #pragma warning (disable : 4514) /* unreferenced inline function has been removed */ 16 #pragma warning (disable : 4996) /* This function or variable may be unsafe. ... */ 17 #endif 18 19 #include <windows.h> 20 21 #ifndef _MSC_VER 22 #define _MSC_VER 0 /* could be MinGW */ 23 #endif 24 25 #if (_MSC_VER >= 1300) 26 #define CWAIT_PARAM_TYPE intptr_t 27 #define DIALOG_PROC_RETVAL INT_PTR /* but it still returns TRUE or FALSE */ 28 #define SETTIMER_RETVAL UINT_PTR 29 #define WINDOW_PROC_RETVAL LRESULT 30 #else 31 #define CWAIT_PARAM_TYPE int 32 #define DIALOG_PROC_RETVAL BOOL 33 #define SETTIMER_RETVAL UINT 34 #define WINDOW_PROC_RETVAL LONG 35 #endif 36 37 #ifdef UNICODE 38 #define W32_STRING(s) L##s 39 #else 40 #define W32_STRING(s) s 41 #endif 42 43 #define VL_ELAPSED DWORD 44 45 #define VILE_SUBKEY W32_STRING("Software\\VI Like Emacs") 46 47 #endif /* W32VILE_H_incl */ 48