delorie.com/archives/browse.cgi | search |
Date: | Mon, 16 Mar 1998 17:56:54 -0800 (PST) |
Message-Id: | <199803170156.RAA24125@adit.ap.net> |
Mime-Version: | 1.0 |
To: | ichapman AT nortel DOT ca, djgpp AT delorie DOT com |
From: | Nate Eldredge <eldredge AT ap DOT net> |
Subject: | Re: __cplusplus |
At 11:42 3/16/1998 -0500, Ian Chapman wrote: >Hi, > __cplusplus is that defined by the system depending upon the source >file bing .c or .cc? Yes. `__cplusplus' is defined when a C++ compile is being done, which is when the file has a name like .cc, .cpp, etc. > Or should I have an explicite:- > > #define __cplusplus No. If you do, you will get a warning about "redefinition of __cplusplus". Nate Eldredge eldredge AT ap DOT net
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |