Re: How to tell which compiler in C code?
- From: "Luca Calligaris" <anonymous@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 5 Jun 2008 07:28:14 +0200
If the compiler build number is different between eVC++ and WCE you can use
the predefined macros:
_MSC_BUILD, _MSC_FULL_VER, but it is not very safe since compilers can be
updated.
According to your code snippet you will use CEPC/PB or iPaq/eVC++: in this
case it is better
if you test the processor architecture
--
Luca Calligaris
www.eurotech.it
"WinCE Trier" <WinCETrier@xxxxxxxxxxxxxxxxxxxxxxxxx> ha scritto nel
messaggio news:621F5BF0-2EE3-49CA-9753-29EDD528671F@xxxxxxxxxxxxxxxx
Our DLL will be used both in EVC 4.0 and WINCE4.2, and we plan to add
different code according to the compiler. So we need to know how to tell
which compiler in C code? Is there any predefined things to indicate this?
#if defined(XXXXX)
/* do something here for CEPC in PB */
.........
#else
/* do alternate here for iPaq in EVC4 */
........
#endif
Thanks for any suggestion!
Cetrier
.
- Follow-Ups:
- Re: How to tell which compiler in C code?
- From: Jack
- Re: How to tell which compiler in C code?
- Prev by Date: PCIBUS.dll is getting detached
- Next by Date: Re: How to tell which compiler in C code?
- Previous by thread: PCIBUS.dll is getting detached
- Next by thread: Re: How to tell which compiler in C code?
- Index(es):
Relevant Pages
|