Examples of errors detected by the V677 diagnostic.


V677. Custom declaration of a standard type. The declaration from system header files should be used instead.


SlimDX

V677 Custom declaration of a standard 'INT8' type. The system header file should be used: #include <BaseTsd.h>. d3dx11dbg.h 32

V677 Custom declaration of a standard 'INT16' type. The system header file should be used: #include <BaseTsd.h>. d3dx11dbg.h 33

V677 Custom declaration of a standard 'UINT8' type. The system header file should be used: #include <BaseTsd.h>. d3dx11dbg.h 34

V677 Custom declaration of a standard 'UINT16' type. The system header file should be used: #include <BaseTsd.h>. d3dx11dbg.h 35


typedef signed char    INT8;
typedef signed short   INT16;
typedef unsigned char  UINT8;
typedef unsigned short UINT16;

Miranda NG

V677 Custom declaration of a standard 'BOOL' type. The system header file should be used: #include <WinDef.h>. AdvaImg freeimage.h 148

V677 Custom declaration of a standard 'BYTE' type. The system header file should be used: #include <WinDef.h>. AdvaImg freeimage.h 149

V677 Custom declaration of a standard 'WORD' type. The system header file should be used: #include <WinDef.h>. AdvaImg freeimage.h 150

V677 Custom declaration of a standard 'DWORD' type. The system header file should be used: #include <WinDef.h>. AdvaImg freeimage.h 151

V677 Custom declaration of a standard 'LONG' type. The system header file should be used: #include <WinNT.h>. AdvaImg freeimage.h 152

V677 Custom declaration of a standard 'INT64' type. The system header file should be used: #include <BaseTsd.h>. AdvaImg freeimage.h 153

V677 Custom declaration of a standard 'UINT64' type. The system header file should be used: #include <BaseTsd.h>. AdvaImg freeimage.h 154

V677 Custom declaration of a standard 'UINT8' type. The system header file should be used: #include <BaseTsd.h>. AdvaImg jmorecfg.h 136

V677 Custom declaration of a standard 'UINT16' type. The system header file should be used: #include <BaseTsd.h>. AdvaImg jmorecfg.h 148

V677 Custom declaration of a standard 'INT16' type. The system header file should be used: #include <BaseTsd.h>. AdvaImg jmorecfg.h 156

V677 Custom declaration of a standard 'INT32' type. The system header file should be used: #include <BaseTsd.h>. AdvaImg jmorecfg.h 165

V677 Custom declaration of a standard 'BYTE' type. The system header file should be used: #include <WinDef.h>. ICQ icq_packet.h 29

V677 Custom declaration of a standard 'WORD' type. The system header file should be used: #include <WinDef.h>. ICQ icq_packet.h 30

V677 Custom declaration of a standard 'DWORD' type. The system header file should be used: #include <WinDef.h>. ICQ icq_packet.h 31


#ifndef _MSC_VER
// define portable types for 32-bit / 64-bit OS
#include <inttypes.h>
typedef int32_t BOOL;
typedef uint8_t BYTE;
typedef uint16_t WORD;
typedef uint32_t DWORD;
typedef int32_t LONG;
typedef int64_t INT64;
typedef uint64_t UINT64;
#else
// MS is not C99 ISO compliant
typedef long BOOL;
typedef unsigned char BYTE;
typedef unsigned short WORD;
typedef unsigned long DWORD;
typedef long LONG;
typedef signed __int64 INT64;
typedef unsigned __int64 UINT64;
#endif // _MSC_VER


Do you make errors in the code?

Check your code
with PVS-Studio

Static code analysis
for C, C++, and C#

goto PVS-Studio;
On our website we use a cookie to collect information of a technical nature.
If you do not agree, please leave the site. Learn More →
Do not show again