Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit 82b1791e authored by rswindell's avatar rswindell
Browse files

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

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