Skip to content
Snippets Groups Projects
Commit 82b1791e authored by rswindell's avatar rswindell
Browse files

More Digital Mars C/C++ (DMC) Compiler support.

parent a6642807
No related branches found
No related tags found
No related merge requests found
......@@ -92,6 +92,11 @@ extern "C" {
#define DESCRIBE_COMPILER(str) sprintf(str,"WATC %d" \
,__WATCOMC__);
#elif defined(__DMC__) /* Digital Mars C/C++ */
#define DESCRIBE_COMPILER(str) sprintf(str,"DMC %X.%02X" \
,__DMC__>>8,__DMC__&0xff);
#else /* Unknown compiler */
#define DESCRIBE_COMPILER(str) strcpy(str,"UNKNOWN COMPILER");
......@@ -141,7 +146,7 @@ extern "C" {
#define snprintf safe_snprintf
#if defined(_MSC_VER) || defined(__MINGW32__)
#if defined(_MSC_VER) || defined(__MINGW32__) || defined(__DMC__)
#define vsnprintf _vsnprintf
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment