master
  1/**
  2 * This file has no copyright assigned and is placed in the Public Domain.
  3 * This file is part of the mingw-w64 runtime package.
  4 * No warranty is given; refer to the file DISCLAIMER.PD within this package.
  5 */
  6#ifndef _DONTUSE_H_INCLUDED_
  7#define _DONTUSE_H_INCLUDED_
  8
  9#include <winapifamily.h>
 10
 11#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
 12
 13#undef strcpy
 14#define strcpy strcpy_instead_use_StringCbCopyA_or_StringCchCopyA
 15
 16#undef wcscpy
 17#define wcscpy wcscpy_instead_use_StringCbCopyW_or_StringCchCopyW
 18
 19#undef strcat
 20#define strcat strcat_instead_use_StringCbCatA_or_StringCchCatA
 21
 22#undef wcscat
 23#define wcscat wcscat_instead_use_StringCbCatW_or_StringCchCatW
 24
 25#undef sprintf
 26#define sprintf sprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA
 27
 28#undef swprintf
 29#define swprintf swprintf_instead_use_StringCbPrintfW_or_StringCchPrintfW
 30
 31#undef vsprintf
 32#define vsprintf vsprintf_instead_use_StringCbVPrintfA_or_StringCchVPrintfA
 33
 34#undef vswprintf
 35#define vswprintf vswprintf_instead_use_StringCbVPrintfW_or_StringCchVPrintfW
 36
 37#undef _snprintf
 38#define _snprintf _snprintf_instead_use_StringCbPrintfA_or_StringCchPrintfA
 39
 40#undef _snwprintf
 41#define _snwprintf _snwprintf_instead_use_StringCbPrintfW_or_StringCchPrintfW
 42
 43#undef _vsnprintf
 44#define _vsnprintf _vsnprintf_instead_use_StringCbVPrintfA_or_StringCchVPrintfA
 45
 46#undef _vsnwprintf
 47#define _vsnwprintf _vsnwprintf_instead_use_StringCbVPrintfW_or_StringCchVPrintfW
 48
 49#undef strcpyA
 50#define strcpyA strcpyA_instead_use_StringCbCopyA_or_StringCchCopyA
 51
 52#undef strcpyW
 53#define strcpyW strcpyW_instead_use_StringCbCopyW_or_StringCchCopyW
 54
 55#undef lstrcpy
 56#define lstrcpy lstrcpy_instead_use_StringCbCopy_or_StringCchCopy
 57
 58#undef lstrcpyA
 59#define lstrcpyA lstrcpyA_instead_use_StringCbCopyA_or_StringCchCopyA
 60
 61#undef lstrcpyW
 62#define lstrcpyW lstrcpyW_instead_use_StringCbCopyW_or_StringCchCopyW
 63
 64#undef StrCpy
 65#define StrCpy StrCpy_instead_use_StringCbCopy_or_StringCchCopy
 66
 67#undef StrCpyA
 68#define StrCpyA StrCpyA_instead_use_StringCbCopyA_or_StringCchCopyA
 69
 70#undef StrCpyW
 71#define StrCpyW StrCpyW_instead_use_StringCbCopyW_or_StringCchCopyW
 72
 73#undef _tcscpy
 74#define _tcscpy _tcscpy_instead_use_StringCbCopy_or_StringCchCopy
 75
 76#undef _ftcscpy
 77#define _ftcscpy _ftcscpy_instead_use_StringCbCopy_or_StringCchCopy
 78
 79#undef lstrcat
 80#define lstrcat lstrcat_instead_use_StringCbCat_or_StringCchCat
 81
 82#undef lstrcatA
 83#define lstrcatA lstrcatA_instead_use_StringCbCatA_or_StringCchCatA
 84
 85#undef lstrcatW
 86#define lstrcatW lstrcatW_instead_use_StringCbCatW_or_StringCchCatW
 87
 88#undef StrCat
 89#define StrCat StrCat_instead_use_StringCbCat_or_StringCchCat
 90
 91#undef StrCatA
 92#define StrCatA StrCatA_instead_use_StringCbCatA_or_StringCchCatA
 93
 94#undef StrCatW
 95#define StrCatW StrCatW_instead_use_StringCbCatW_or_StringCchCatW
 96
 97#undef StrNCat
 98#define StrNCat StrNCat_instead_use_StringCbCatN_or_StringCchCatN
 99
100#undef StrNCatA
101#define StrNCatA StrNCatA_instead_use_StringCbCatNA_or_StringCchCatNA
102
103#undef StrNCatW
104#define StrNCatW StrNCatW_instead_use_StringCbCatNW_or_StringCchCatNW
105
106#undef StrCatN
107#define StrCatN StrCatN_instead_use_StringCbCatN_or_StringCchCatN
108
109#undef StrCatNA
110#define StrCatNA StrCatNA_instead_use_StringCbCatNA_or_StringCchCatNA
111
112#undef StrCatNW
113#define StrCatNW StrCatNW_instead_use_StringCbCatNW_or_StringCchCatNW
114
115#undef _tcscat
116#define _tcscat _tcscat_instead_use_StringCbCat_or_StringCchCat
117
118#undef _ftcscat
119#define _ftcscat _ftcscat_instead_use_StringCbCat_or_StringCchCat
120
121#undef wsprintf
122#define wsprintf wsprintf_instead_use_StringCbPrintf_or_StringCchPrintf
123
124#undef wsprintfA
125#define wsprintfA wsprintfA_instead_use_StringCbPrintfA_or_StringCchPrintfA
126
127#undef wsprintfW
128#define wsprintfW wsprintfW_instead_use_StringCbPrintfW_or_StringCchPrintfW
129
130#undef wvsprintf
131#define wvsprintf wvsprintf_instead_use_StringCbVPrintf_or_StringCchVPrintf
132
133#undef wvsprintfA
134#define wvsprintfA wvsprintfA_instead_use_StringCbVPrintfA_or_StringCchVPrintfA
135
136#undef wvsprintfW
137#define wvsprintfW wvsprintfW_instead_use_StringCbVPrintfW_or_StringCchVPrintfW
138
139#undef _vstprintf
140#define _vstprintf _vstprintf_instead_use_StringCbVPrintf_or_StringCchVPrintf
141
142#undef _vsntprintf
143#define _vsntprintf _vsntprintf_instead_use_StringCbVPrintf_or_StringCchVPrintf
144
145#undef _stprintf
146#define _stprintf _stprintf_instead_use_StringCbPrintf_or_StringCchPrintf
147
148#undef _sntprintf
149#define _sntprintf _sntprintf_instead_use_StringCbPrintf_or_StringCchPrintf
150
151#undef _getts
152#define _getts _getts_instead_use_StringCbGets_or_StringCchGets
153
154#undef gets
155#define gets _gets_instead_use_StringCbGetsA_or_StringCchGetsA
156
157#undef _getws
158#define _getws _getws_instead_use_StringCbGetsW_or_StringCchGetsW
159
160#endif  /* WINAPI_PARTITION_DESKTOP */
161#endif