Hi

I've saw the following piece of code (it doesn't work in this form why?:-O):

#define CPU AMD

#if    (CPU == INTEL )
            printf("Intel\n");
#elif (CPU == AMD )
            printf("AMD\n");
#else
            printf("CPU isn't defined\n");
#endif

Note I tried this on M$ complier & GNU gcc works the same

Where are AMD and INTEL defined?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.