Главная страница | назад





Article #16519: Environment define to identify Borland Compiler

 Question and Answer Database

FAQ1519C.txt   Environment define to identify Borland Compiler
Category   :IDE
Platform    :All
Product    :C++Builder  1.x

Question:
Is there a way that I can tell my code that it is being compiled
by the Borland Compiler?

Answer:
Yes, the compiler defines __BORLANDC__ which you could use in an
ifdef statement to include or dis-include certain code segments. ie:

#ifdef __BOELANDC__
#include "Bordefs.h"
#else
#include "unixdefs.h"
#endif



7/2/98 10:32:32 AM
 

Last Modified: 01-SEP-99