diff --git a/src/libs/vdxf/dxflib/dl_codes.h b/src/libs/vdxf/dxflib/dl_codes.h index 4cd116fad..2336b3685 100644 --- a/src/libs/vdxf/dxflib/dl_codes.h +++ b/src/libs/vdxf/dxflib/dl_codes.h @@ -32,9 +32,11 @@ #include "dl_global.h" -#if _MSC_VER > 1000 -#pragma once -#endif // _MSC_VER > 1000 +#if defined(Q_CC_MSVC) + #if (_MSC_VER > 1000) + #pragma once + #endif // _MSC_VER > 1000 +#endif // Q_CC_MSVC #if defined(__OS2__)||defined(__EMX__) #define strcasecmp(s,t) stricmp(s,t) diff --git a/src/libs/vdxf/dxflib/dl_exception.h b/src/libs/vdxf/dxflib/dl_exception.h index fdca72963..506e194c8 100644 --- a/src/libs/vdxf/dxflib/dl_exception.h +++ b/src/libs/vdxf/dxflib/dl_exception.h @@ -28,9 +28,11 @@ #include "dl_global.h" -#if _MSC_VER > 1000 -#pragma once -#endif // _MSC_VER > 1000 +#if defined(Q_CC_MSVC) + #if (_MSC_VER > 1000) + #pragma once + #endif // _MSC_VER > 1000 +#endif // Q_CC_MSVC /** * Used for exception handling. diff --git a/src/libs/vdxf/dxflib/dl_writer.h b/src/libs/vdxf/dxflib/dl_writer.h index ff744ba50..882033ede 100644 --- a/src/libs/vdxf/dxflib/dl_writer.h +++ b/src/libs/vdxf/dxflib/dl_writer.h @@ -32,9 +32,11 @@ #include #endif -#if _MSC_VER > 1000 -#pragma once -#endif // _MSC_VER > 1000 +#if defined(Q_CC_MSVC) + #if (_MSC_VER > 1000) + #pragma once + #endif // _MSC_VER > 1000 +#endif // Q_CC_MSVC #include #include diff --git a/src/libs/vdxf/dxflib/dl_writer_ascii.cpp b/src/libs/vdxf/dxflib/dl_writer_ascii.cpp index 319c34f23..f54a6fd1b 100644 --- a/src/libs/vdxf/dxflib/dl_writer_ascii.cpp +++ b/src/libs/vdxf/dxflib/dl_writer_ascii.cpp @@ -23,9 +23,11 @@ ** **********************************************************************/ -#if _MSC_VER > 1000 -#pragma once -#endif // _MSC_VER > 1000 +#if defined(Q_CC_MSVC) + #if (_MSC_VER > 1000) + #pragma once + #endif // _MSC_VER > 1000 +#endif // Q_CC_MSVC #include #include diff --git a/src/libs/vdxf/dxflib/dl_writer_ascii.h b/src/libs/vdxf/dxflib/dl_writer_ascii.h index 6f8b4f965..51686de8c 100644 --- a/src/libs/vdxf/dxflib/dl_writer_ascii.h +++ b/src/libs/vdxf/dxflib/dl_writer_ascii.h @@ -28,9 +28,11 @@ #include "dl_global.h" -#if _MSC_VER > 1000 -#pragma once -#endif // _MSC_VER > 1000 +#if defined(Q_CC_MSVC) + #if (_MSC_VER > 1000) + #pragma once + #endif // _MSC_VER > 1000 +#endif // Q_CC_MSVC #include "dl_writer.h" #include