1 /***
2 *crtwrn.h
3 *
4 *           Copyright (c) Microsoft Corporation. All rights reserved.
5 *
6 *Purpose:
7 *           This file contains the IDs and messages for warnings
8 *           in the CRT headers.
9 *
10 ****/
11
12 #pragma once
13
14 #ifndef _INC_CRTWRN
15 #define _INC_CRTWRN
16
17 #include <crtdefs.h>
18
19 #define __CRT_WARNING( _Number, _Description ) \
20       message("" __FILE__ "(" _CRT_STRINGIZE(__LINE__) ") : " \
21       "warning CRT" _CRT_STRINGIZE(_Number) ": " _CRT_STRINGIZE(_Description))
22
23 #define _CRT_WARNING( _Id ) \
24       __CRT_WARNING( _CRTWRN_WNUMBER_##_Id, _CRTWRN_MESSAGE_##_Id )
25
26 /*
27 A warning is a 4-digit ID number (_CRTWRN_WNUMBER_*) 
28 followed by a message (_CRTWRN_MESSAGE_*)
29 Emit a warning by adding the following code to the header file:
30       #pragma _CRT_WARNING( id )
31 */
32
33 /* NAME */
34 /* #pragma _CRT_WARNING( NAME ) */
35 /* #define _CRTWRN_WNUMBER_NAME  9999 */
36 /* #define _CRTWRN_MESSAGE_NAME  description */
37
38 /* _VCCLRIT_DEPRECATED */
39 /* #pragma _CRT_WARNING( _VCCLRIT_DEPRECATED ) */
40 #define _CRTWRN_WNUMBER__VCCLRIT_DEPRECATED  1001
Lines 41 ... 50 are skipped.
51 #define _CRTWRN_WNUMBER__NO_32BIT_TIME_T  1003
52 #define _CRTWRN_MESSAGE__NO_32BIT_TIME_T  _USE_32BIT_TIME_T ignored. \
53              You cannot use 32-bit time_t with _WIN64
54
55 /* _NO_SPECIAL_TRANSFER */
56 /* #pragma _CRT_WARNING( _NO_SPECIAL_TRANSFER ) */
57 #define _CRTWRN_WNUMBER__NO_SPECIAL_TRANSFER  1004
58 #define _CRTWRN_MESSAGE__NO_SPECIAL_TRANSFER Special transfer of \
59              control routines not defined for this platform
60
61 /* _NO_ITERATOR_DEBUGGING */
62 /* #pragma _CRT_WARNING( _NO_ITERATOR_DEBUGGING ) */
63 #define _CRTWRN_WNUMBER__NO_ITERATOR_DEBUGGING  1005
64 #define _CRTWRN_MESSAGE__NO_ITERATOR_DEBUGGING Iterator debugging not \
65              supported in retail builds.\n  \
66              Setting _HAS_ITERA##TOR_DEBUGGING=0
67
68 /* _CLR_STATIC_CPPLIB */
69 /* #pragma _CRT_WARNING( _CLR_AND_STATIC_CPPLIB ) */
70 #define _CRTWRN_WNUMBER__CLR_AND_STATIC_CPPLIB  1006
71 #define _CRTWRN_MESSAGE__CLR_AND_STATIC_CPPLIB STATIC CPPLIB is not \
72              supported while building with /clr or /clr:pure
73
74 #endif /* _INC_CRTWRN */
75