views:

121

answers:

2

I am not able to understand the following statement from the file limits.h. What is the use of this statement and what does it accomplishes?

/* If we are not using GNU CC we have to define all the symbols ourself.
   Otherwise use gcc's definitions (see below).  */
#if !defined __GNUC__ || __GNUC__ < 2
+4  A: 

It checks if your program is compiled by some other compiler than GCC, or some very old GCC version.

kotlinski
@kotlinski: I guess, the "2" in last of the if statement is the gcc version.
Manav MN
+2  A: 

It checks whether you are not using a Gcc compiler Version 2 or Gcc some other versions. using this pre-processor macro we can some portable codes.

abubacker