Mercurial > hg > xemacs-beta
comparison src/s/windowsnt.h @ 1743:543769b89fed
[xemacs-hg @ 2003-10-14 05:02:57 by james]
New compiler.h contains compiler-specific defines. Use it everywhere.
author | james |
---|---|
date | Tue, 14 Oct 2003 05:03:13 +0000 |
parents | 4424541fa226 |
children | 61855263cb07 |
comparison
equal
deleted
inserted
replaced
1742:7f92ee59c996 | 1743:543769b89fed |
---|---|
240 #define XCDECL __cdecl | 240 #define XCDECL __cdecl |
241 | 241 |
242 /* MSVC 6.0 has a mechanism to declare functions which never return */ | 242 /* MSVC 6.0 has a mechanism to declare functions which never return */ |
243 #if (_MSC_VER >= 1200) | 243 #if (_MSC_VER >= 1200) |
244 #define DOESNT_RETURN __declspec(noreturn) void | 244 #define DOESNT_RETURN __declspec(noreturn) void |
245 #define DECLARE_DOESNT_RETURN(decl) __declspec(noreturn) extern void decl | 245 #define DECLARE_DOESNT_RETURN(decl) __declspec(noreturn) extern void XCDECL decl |
246 #define DECLARE_DOESNT_RETURN_GCC_ATTRIBUTE_SYNTAX_SUCKS(decl,str,idx) \ | |
247 __declspec(noreturn) extern void __cdecl decl PRINTF_ARGS(str,idx) | |
248 #else | |
249 #define DECLARE_DOESNT_RETURN_GCC_ATTRIBUTE_SYNTAX_SUCKS(decl,str,idx) \ | |
250 extern void __cdecl decl PRINTF_ARGS(str,idx) | |
251 #endif /* MSVC 6.0 */ | 246 #endif /* MSVC 6.0 */ |
252 | 247 |
253 /* MSVC warnings no-no crap. When adding one to this section, | 248 /* MSVC warnings no-no crap. When adding one to this section, |
254 1. Think twice. | 249 1. Think twice. |
255 2. Insert textual description of the warning. | 250 2. Insert textual description of the warning. |