• Advertisement

Archived

This topic is now archived and is closed to further replies.

preprocessing prob

This topic is 5971 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am making a game that can be compiled in Borland CPP and in MS VC, but I need to do some preprocessing to help out some incompatibilities. Thing is I would like to make two seperate projects, but this is not viable, so I must go this route: I have done the following: #if defined (__BORLANDC__) // borland specific pre-processor directives #ifndef __WIN32__ #error compile using a WIN32 GUI compiler #endif #ifndef __cplusplus #error Must use C++ compiler. #endif #elif // MS VC specific pre-processor directives #ifndef _WIN32 #error compile using a WIN32 GUI compiler #endif #ifndef _MMSYSTEM_H_ #include #define _MMSYSTEM_H #endif #endif Borland is fine with it, but VC finds an error with the #elif I am Flumuxed ! please help djsomers

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
what about
#else

instead of
#elif

?

Share this post


Link to post
Share on other sites

  • Advertisement