[previous] 1327 [next] The macro __STDC__ has been used. It may not be present in a C++ environment.
C++ compatibility REFERENCE - ISO:C90-6.8.8 Predefined Macro Names

The macro '__STDC__' is being used.

__STDC__ is implicitly #define'd as 1 by an ISO compliant C compiler.

A C++ compiler may define __STDC__ or it may not, and if it does, it may have any value. The macro __cplusplus can be used to detect a C++ compiler.


/*PRQA S 1303,3001,3210,3211,3408,3447 ++*/

#ifdef __STDC__                                 /* Message 1327 */

extern int foo(unsigned char *puc);

#else

extern int foo();

#endif

int x = 1;

QA·C Source Code Analyser 8.1.2
© 2013 Programming Research.
www.programmingresearch.com
Personality Groups | Glossary | Message Index Contents