Keil™, An ARM® Company

Technical Support

C51: WARNING 317 (MACRO 'NAME': INVALID REDEFINITION)


Information in this article applies to:

  • C51 Version 5.50

QUESTION

When I compile my C source file I get the following diagnostic:

WARNING 317:  MACRO 'NAME': INVALID REDEFINITION

ANSWER

A predefined macro cannot be redefined or removed. The compiler recognizes the following predefined macros:

  • __C51__
  • __DATE__
  • __FILE__
  • __LINE__
  • __MODEL__
  • __STDC__
  • __TIME__

MORE INFORMATION

Last Reviewed: Monday, June 26, 2006


Did this article provide the answer you needed?
 
Yes
No
Not Sure