[I hate to ask questions that must have been answered somewhere in the docs, but i searched the manuals without success...]
In order to easily simulate parts of my current project, i wrote a small simulator for my actual hardware in Dev-Cpp on the PC (Windows) to test my state machine code. The module containing the state machine is written in a portable way without any knowledge of the underlying hardware. Now, how can i detect the platform i'm compiling this module on? I mean there must be some definition of __AVRGCC__ or such, but so far i couldn't find any documentation about such defined words in the avr-gcc environment.
Can you tell me what definition to check for to tell that the module should be compiled for an AVR? And, could you post a reference to the relevant docs you found that info?
Thanks in advance,