summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2012-12-27 13:07:11 +0200
committerTor Lillqvist <tml@iki.fi>2012-12-27 13:18:24 +0200
commitc318f3b0224a57102614be0efec4b49c80a3aa82 (patch)
treea79ef6e3fc20c2323084a8a845ba32619427f26d
parent90649a207822e1fb402599987b1ac3d4705b1330 (diff)
Check for _MSC_VER instead of MSC in sources
Change-Id: Ibaf2501e6b655913963a53c1cd63668f1c4cccb2
-rw-r--r--solenv/gbuild/platform/com_MSC_defs.mk1
-rw-r--r--svl/source/inc/poolio.hxx2
-rw-r--r--sw/source/filter/html/css1atr.cxx4
-rw-r--r--sw/source/filter/html/htmlatr.cxx4
-rw-r--r--sw/source/filter/ww8/ww8atr.cxx4
-rw-r--r--tools/source/fsys/dirent.cxx2
6 files changed, 11 insertions, 6 deletions
diff --git a/solenv/gbuild/platform/com_MSC_defs.mk b/solenv/gbuild/platform/com_MSC_defs.mk
index 1e9ac46eec13..1e8004f376d1 100644
--- a/solenv/gbuild/platform/com_MSC_defs.mk
+++ b/solenv/gbuild/platform/com_MSC_defs.mk
@@ -50,7 +50,6 @@ gb_CXX := $(CXX)
endif
gb_COMPILERDEFS := \
- -DMSC \
-D_CRT_NON_CONFORMING_SWPRINTFS \
-D_CRT_NONSTDC_NO_DEPRECATE \
-D_CRT_SECURE_NO_DEPRECATE \
diff --git a/svl/source/inc/poolio.hxx b/svl/source/inc/poolio.hxx
index dd3e74a1b81c..13477ebe278c 100644
--- a/svl/source/inc/poolio.hxx
+++ b/svl/source/inc/poolio.hxx
@@ -142,7 +142,7 @@ struct SfxItemPool_Impl
# undef DBG
#endif
-#if defined(DBG_UTIL) && defined(MSC)
+#if defined(DBG_UTIL) && defined(_MSC_VER)
#define DBG(x) x
#else
#define DBG(x)
diff --git a/sw/source/filter/html/css1atr.cxx b/sw/source/filter/html/css1atr.cxx
index 46c1ddb09dbc..796ac3c70309 100644
--- a/sw/source/filter/html/css1atr.cxx
+++ b/sw/source/filter/html/css1atr.cxx
@@ -103,7 +103,9 @@ using ::editeng::SvxBorderLine;
* diese Section und die dazugeherigen Tabellen muessen in folgenden Files
* gepflegt werden: rtf\rtfatr.cxx, sw6\sw6atr.cxx, w4w\w4watr.cxx
*/
-#if !defined(UNX) && !defined(MSC) && !defined(PPC) && !defined(__MINGW32__)
+#if !defined(UNX) && !defined(_MSC_VER) && !defined(PPC) && !defined(__MINGW32__)
+
+#error Interesting, I though this ifdef block would never be compiled. So remove this line and please tell me --tml@iki.fi
#define ATTRFNTAB_SIZE 130
#if ATTRFNTAB_SIZE != POOLATTR_END - POOLATTR_BEGIN
diff --git a/sw/source/filter/html/htmlatr.cxx b/sw/source/filter/html/htmlatr.cxx
index 7bd1af697919..d48202e065d3 100644
--- a/sw/source/filter/html/htmlatr.cxx
+++ b/sw/source/filter/html/htmlatr.cxx
@@ -86,7 +86,9 @@ using namespace ::com::sun::star;
* diese Section und die dazugeherigen Tabellen muessen in folgenden Files
* gepflegt werden: rtf\rtfatr.cxx, sw6\sw6atr.cxx, w4w\w4watr.cxx
*/
-#if !defined(UNX) && !defined(MSC) && !defined(PPC) && !defined(__MINGW32__)
+#if !defined(UNX) && !defined(_MSC_VER) && !defined(PPC) && !defined(__MINGW32__)
+
+#error Interesting, I though this ifdef block would never be compiled. So remove this line and please tell me --tml@iki.fi
#define ATTRFNTAB_SIZE 130
#if ATTRFNTAB_SIZE != POOLATTR_END - POOLATTR_BEGIN
diff --git a/sw/source/filter/ww8/ww8atr.cxx b/sw/source/filter/ww8/ww8atr.cxx
index b45ee1a76b02..2c9c3e90b38d 100644
--- a/sw/source/filter/ww8/ww8atr.cxx
+++ b/sw/source/filter/ww8/ww8atr.cxx
@@ -140,7 +140,9 @@ using namespace nsSwDocInfoSubType;
* gepflegt werden: rtf\rtfatr.cxx, sw6\sw6atr.cxx, w4w\w4watr.cxx
*/
-#if !defined(MSC) && !defined(UNX) && !defined(PPC) && !defined(__MINGW32__)
+#if !defined(_MSC_VER) && !defined(UNX) && !defined(PPC) && !defined(__MINGW32__)
+
+#error Interesting, I though this ifdef block would never be compiled. So remove this line and please tell me --tml@iki.fi
#define ATTRFNTAB_SIZE 130
#if ATTRFNTAB_SIZE != POOLATTR_END - POOLATTR_BEGIN
diff --git a/tools/source/fsys/dirent.cxx b/tools/source/fsys/dirent.cxx
index cc0d3ff73490..1e9000b9c2c4 100644
--- a/tools/source/fsys/dirent.cxx
+++ b/tools/source/fsys/dirent.cxx
@@ -1337,7 +1337,7 @@ DirEntry DirEntry::TempName( DirEntryKind eKind ) const
* Welcome to the 21st century, we can have longer filenames now ;)
* New format: pfx + "5 char milli/micro second res" + "current pid" + ".tmp"
*/
-#if (defined MSC || defined __MINGW32__) && defined WNT
+#ifdef _WIN32
/* Milliseconds !! */
static unsigned long u = GetTickCount();
unsigned long mypid = static_cast<unsigned long>(_getpid());