mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0022972: Eliminate macro definitions that has compiler-provided analogs (WNT and so on)
1) Macro definition WNT replaced by _WIN32 and _MSC_VER for platform and compiler detection accordingly. 2) Macro definition LIN replaced by __linux__ macro. 3) Macro definition DEB replaced by OCCT_DEBUG macro.
This commit is contained in:
@@ -60,7 +60,7 @@ static void LWrite(const TopoDS_Shape& shape,
|
||||
{
|
||||
char buf[256];
|
||||
if(strlen(filename) > 256) return;
|
||||
#if defined WNT
|
||||
#if defined _MSC_VER
|
||||
strcpy_s (buf, filename);
|
||||
#else
|
||||
strcpy (buf, filename);
|
||||
|
@@ -34,7 +34,7 @@ static void WriteS(const TopoDS_Shape& shape,
|
||||
{
|
||||
char buf[256];
|
||||
if(strlen(filename) > 255) return;
|
||||
#ifdef WNT
|
||||
#ifdef _MSC_VER
|
||||
strcpy_s (buf, filename);
|
||||
#else
|
||||
strcpy (buf, filename);
|
||||
|
@@ -61,7 +61,7 @@ static void Write(const TopoDS_Shape& shape,
|
||||
{
|
||||
char buf[256];
|
||||
if(strlen(filename) > 255) return;
|
||||
#if defined WNT
|
||||
#if defined _MSC_VER
|
||||
strcpy_s (buf, filename);
|
||||
#else
|
||||
strcpy (buf, filename);
|
||||
|
Reference in New Issue
Block a user