mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-05-25 17:43:48 +08: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:
@@ -28,10 +28,10 @@
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#ifdef WNT
|
||||
#ifdef _MSC_VER
|
||||
# include <stdlib.h>
|
||||
# include <io.h>
|
||||
#endif /* WNT */
|
||||
#endif /* _MSC_VER */
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -97,8 +97,8 @@
|
||||
*/
|
||||
|
||||
/* ABV 19.12.00: merging porting modifications by POP (for WNT, AIX) */
|
||||
#if defined(WNT) && !defined(MSDOS)
|
||||
#define MSDOS WNT
|
||||
#if defined(_WIN32) && !defined(MSDOS)
|
||||
#define MSDOS _WIN32
|
||||
#endif
|
||||
#if defined(_AIX)
|
||||
#include <malloc.h>
|
||||
|
||||
Reference in New Issue
Block a user