summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--connectivity/source/inc/file/fcode.hxx2
-rw-r--r--external/clucene/configs/clucene-config-MSVC.h3
-rw-r--r--external/firebird/firebird-cygwin-msvc.patch8
-rw-r--r--external/mysqlcppconn/config.h2
-rw-r--r--external/neon/configs/config.h14
-rw-r--r--external/redland/raptor/raptor_config.h6
-rw-r--r--external/redland/rasqal/rasqal-msvc.patch.16
-rw-r--r--external/redland/redland/redland-msvc.patch.16
-rw-r--r--onlineupdate/source/update/common/updatedefines.h22
-rw-r--r--sal/osl/w32/salinit.cxx6
-rw-r--r--soltools/mkdepend/main.c2
-rw-r--r--stoc/source/javavm/javavm.cxx2
-rw-r--r--vcl/source/opengl/OpenGLHelper.cxx13
-rw-r--r--winaccessibility/source/UAccCOM/stdafx.h2
14 files changed, 12 insertions, 82 deletions
diff --git a/connectivity/source/inc/file/fcode.hxx b/connectivity/source/inc/file/fcode.hxx
index d3a3b8ac72f7..fe66e3c32710 100644
--- a/connectivity/source/inc/file/fcode.hxx
+++ b/connectivity/source/inc/file/fcode.hxx
@@ -44,7 +44,6 @@ namespace connectivity
public:
//virtual dtor to allow this to be the root of the class hierarchy
virtual ~OCode();
-#if !defined _MSC_VER || _MSC_VER >= 1900
//but that disables the default move ctor
OCode(OCode&&) = default;
//but that disables the rest of default ctors
@@ -53,7 +52,6 @@ namespace connectivity
//and same issue for the assignment operators
OCode& operator=(const OCode&) = default;
OCode& operator=(OCode&&) = default;
-#endif
static void * SAL_CALL operator new( size_t nSize )
{ return ::rtl_allocateMemory( nSize ); }
diff --git a/external/clucene/configs/clucene-config-MSVC.h b/external/clucene/configs/clucene-config-MSVC.h
index 638bc4d2e54a..5e22e7a7ea35 100644
--- a/external/clucene/configs/clucene-config-MSVC.h
+++ b/external/clucene/configs/clucene-config-MSVC.h
@@ -49,9 +49,6 @@ typedef unsigned int uint32_t;
typedef signed long long int64_t;
typedef unsigned long long uint64_t;
-#if _MSC_VER < 1800
-typedef double float_t;
-#endif
typedef unsigned long _cl_dword_t;
/* undef size_t size_t */
diff --git a/external/firebird/firebird-cygwin-msvc.patch b/external/firebird/firebird-cygwin-msvc.patch
index 3e769c81871c..658580415ab5 100644
--- a/external/firebird/firebird-cygwin-msvc.patch
+++ b/external/firebird/firebird-cygwin-msvc.patch
@@ -56,7 +56,7 @@
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
significant byte first (like Motorola and SPARC, unlike Intel). */
-@@ -703,3 +703,40 @@
+@@ -703,3 +703,34 @@
#ifndef HAVE_SOCKLEN_T
typedef int socklen_t;
#endif
@@ -88,15 +88,9 @@
+#define HAVE_GETPAGESIZE
+
+#if defined _MSC_VER
-+#if _MSC_VER < 1500
-+#define vsnprintf _vsnprintf
-+#endif
+#define isnan _isnan
+#endif
+
-+#if _MSC_VER < 1900
-+#define snprintf _snprintf
-+#endif
--- src/common/common.h 2016-07-15 11:31:26.366735500 +0200
+++ src/common/common.h 2016-07-17 16:18:39.121579400 +0200
@@ -551,15 +551,6 @@
diff --git a/external/mysqlcppconn/config.h b/external/mysqlcppconn/config.h
index cad5b6786ed8..eaa929437182 100644
--- a/external/mysqlcppconn/config.h
+++ b/external/mysqlcppconn/config.h
@@ -6,7 +6,7 @@
#define HAVE_FUNCTION_STRTOL 1
#define HAVE_FUNCTION_STRTOULL 1
-#if defined(MACOSX) || defined(__sun) || defined(LINUX) || (defined _MSC_VER && _MSC_VER >= 1600)
+#if defined(MACOSX) || defined(__sun) || defined(LINUX) || defined (_MSC_VER)
#define HAVE_STDINT_H
#ifndef _MSC_VER
#define HAVE_INTTYPES_H
diff --git a/external/neon/configs/config.h b/external/neon/configs/config.h
index a2e0c8d9e4bc..c1f138bdd0d4 100644
--- a/external/neon/configs/config.h
+++ b/external/neon/configs/config.h
@@ -235,16 +235,8 @@
#define HAVE_SIGNAL_H 1
/* Define to 1 if you have the `snprintf' function. */
-#ifdef UNX
-#define HAVE_SNPRINTF 1
-#endif
-
-#ifdef _WIN32
-#if _MSC_VER >= 1900 // VS 2015
+#if defined( UNX ) || defined(_MSC_VER)
#define HAVE_SNPRINTF 1
-#else
-#define snprintf _snprintf
-#endif
#endif
/* Define to 1 if the system has the type `socklen_t'. */
@@ -337,7 +329,7 @@
/* Define if the timezone global is available */
#ifndef MACOSX
#define HAVE_TIMEZONE 1
-#if defined(_MSC_VER) && _MSC_VER >= 1900 // VS 2015
+#if defined(_MSC_VER)
#define timezone _timezone
#endif
#endif
@@ -359,7 +351,7 @@
#endif
/* Define to 1 if you have the `vsnprintf' function. */
-#if defined( UNX ) || defined(_MSC_VER)
+#if defined(UNX) || defined(_MSC_VER)
#define HAVE_VSNPRINTF 1
#endif
diff --git a/external/redland/raptor/raptor_config.h b/external/redland/raptor/raptor_config.h
index b69550dcfd34..3e94fee947ad 100644
--- a/external/redland/raptor/raptor_config.h
+++ b/external/redland/raptor/raptor_config.h
@@ -364,13 +364,7 @@
# endif
# ifdef _MSC_VER
-# if _MSC_VER >= 1300
# define __func__ __FUNCTION__
-# else
- /* better than nothing */
-# define raptor_str(s) #s
-# define __func__ "func@" __FILE__ ":" raptor_str(__LINE__)
-# endif
# endif
# define RAPTOR_INLINE __inline
diff --git a/external/redland/rasqal/rasqal-msvc.patch.1 b/external/redland/rasqal/rasqal-msvc.patch.1
index 79fce7a8dc5e..ff4e5b5a725e 100644
--- a/external/redland/rasqal/rasqal-msvc.patch.1
+++ b/external/redland/rasqal/rasqal-msvc.patch.1
@@ -1,13 +1,11 @@
diff -ru rasqal.orig/src/win32_rasqal_config.h rasqal/src/win32_rasqal_config.h
--- rasqal.orig/src/win32_rasqal_config.h 2015-09-02 23:12:00.733125322 +0200
+++ rasqal/src/win32_rasqal_config.h 2015-09-02 23:28:10.152190403 +0200
-@@ -31,7 +31,9 @@
+@@ -31,7 +31,6 @@
/* MS names for these functions */
// next line breaks build on wntmsci12
//#define vsnprintf _vsnprintf
-+#if _MSC_VER < 1900 // older than VC 2015
- #define snprintf _snprintf
-+#endif
+-#define snprintf _snprintf
#define access _access
#define stricmp _stricmp
#define strnicmp _strnicmp
diff --git a/external/redland/redland/redland-msvc.patch.1 b/external/redland/redland/redland-msvc.patch.1
index c69366bc23f5..1b170989fd1e 100644
--- a/external/redland/redland/redland-msvc.patch.1
+++ b/external/redland/redland/redland-msvc.patch.1
@@ -1,12 +1,10 @@
--- redland.orig/src/win32_rdf_config.h 2015-09-02 23:12:12.894126138 +0200
+++ redland/src/win32_rdf_config.h 2015-09-02 23:23:54.600173246 +0200
-@@ -43,7 +43,9 @@
+@@ -43,7 +43,6 @@
/* MS names for these functions */
// next line breaks build on wntmsci12
//#define vsnprintf _vsnprintf
-+#if _MSC_VER < 1900 // older than VC 2015
- #define snprintf _snprintf
-+#endif
+-#define snprintf _snprintf
#define access _access
#define stricmp _stricmp
#define strnicmp _strnicmp
diff --git a/onlineupdate/source/update/common/updatedefines.h b/onlineupdate/source/update/common/updatedefines.h
index 73473109e2ae..95969b169426 100644
--- a/onlineupdate/source/update/common/updatedefines.h
+++ b/onlineupdate/source/update/common/updatedefines.h
@@ -38,9 +38,6 @@
# define access _access
# define putenv _putenv
-# if _MSC_VER < 1900
-# define stat _stat
-# endif
# define DELETE_DIR L"tobedeleted"
# define CALLBACK_BACKUP_EXT L".moz-callback"
@@ -48,25 +45,6 @@
# define NS_T(str) L ## str
# define NS_SLASH NS_T('\\')
-#if defined(_MSC_VER) && _MSC_VER < 1900
-// On Windows, _snprintf and _snwprintf don't guarantee null termination. These
-// macros always leave room in the buffer for null termination and set the end
-// of the buffer to null in case the string is larger than the buffer. Having
-// multiple nulls in a string is fine and this approach is simpler (possibly
-// faster) than calculating the string length to place the null terminator and
-// truncates the string as _snprintf and _snwprintf do on other platforms.
-static inline int mysnprintf(char* dest, size_t count, const char* fmt, ...)
-{
- size_t _count = count - 1;
- va_list varargs;
- va_start(varargs, fmt);
- int result = _vsnprintf(dest, count - 1, fmt, varargs);
- va_end(varargs);
- dest[_count] = '\0';
- return result;
-}
-#define snprintf mysnprintf
-#endif
static inline int mywcsprintf(WCHAR* dest, size_t count, const WCHAR* fmt, ...)
{
size_t _count = count - 1;
diff --git a/sal/osl/w32/salinit.cxx b/sal/osl/w32/salinit.cxx
index 1c482fa575a0..2b7d338589f6 100644
--- a/sal/osl/w32/salinit.cxx
+++ b/sal/osl/w32/salinit.cxx
@@ -32,12 +32,6 @@ extern "C" {
void sal_detail_initialize(int argc, char ** argv)
{
-#if defined(_WIN64) && _MSC_VER <= 1800
- // tdf#99410: MSVC 2013 runtime library has problems with some math functions if
- // the CPU supports them and they are disabled in the OS
- _set_FMA3_enable(0);
-#endif
-
sal_initGlobalTimer();
// SetProcessDEPPolicy(PROCESS_DEP_ENABLE);
// SetDllDirectoryW(L"");
diff --git a/soltools/mkdepend/main.c b/soltools/mkdepend/main.c
index 997ba6dbb87d..438db70f8e3e 100644
--- a/soltools/mkdepend/main.c
+++ b/soltools/mkdepend/main.c
@@ -40,7 +40,7 @@ in this Software without prior written authorization from the X Consortium.
#ifdef _MSC_VER /* Define ssize_t */
#if !defined(_W64)
-#if !defined(__midl) && (defined(_X86_) || defined(_M_IX86)) && _MSC_VER >= 1300
+#if !defined(__midl) && (defined(_X86_) || defined(_M_IX86))
#define _W64 __w64
#else
#define _W64
diff --git a/stoc/source/javavm/javavm.cxx b/stoc/source/javavm/javavm.cxx
index 7bf88ccb81ab..224768d1f067 100644
--- a/stoc/source/javavm/javavm.cxx
+++ b/stoc/source/javavm/javavm.cxx
@@ -514,7 +514,7 @@ void setTimeZone(stoc_javavm::JVM * pjvm) throw() {
tmData = localtime(&clock);
#ifdef MACOSX
char * p = tmData->tm_zone;
-#elif defined(_MSC_VER) && _MSC_VER >= 1900
+#elif defined(_MSC_VER)
char * p = _tzname[0];
(void)tmData;
#else
diff --git a/vcl/source/opengl/OpenGLHelper.cxx b/vcl/source/opengl/OpenGLHelper.cxx
index 76039a35e09a..1969f016b4e0 100644
--- a/vcl/source/opengl/OpenGLHelper.cxx
+++ b/vcl/source/opengl/OpenGLHelper.cxx
@@ -818,21 +818,10 @@ namespace {
}
WatchdogTimings::WatchdogTimings()
- : maTimingValues
-#if defined _MSC_VER && _MSC_VER <= 1800
- // note: Apple clang's parser segfaults on this
- (
-#else
- // note: MSVC 2013 can't parse this, error C2797
- {
-#endif
+ : maTimingValues{
{{6, 20} /* 1.5s, 5s */, {20, 120} /* 5s, 30s */,
{60, 240} /* 15s, 60s */, {60, 240} /* 15s, 60s */}
-#if defined _MSC_VER && _MSC_VER <= 1800
- )
-#else
}
-#endif
, mbRelaxed(false)
{
}
diff --git a/winaccessibility/source/UAccCOM/stdafx.h b/winaccessibility/source/UAccCOM/stdafx.h
index b9a7d3ee9d94..12bf35a524d4 100644
--- a/winaccessibility/source/UAccCOM/stdafx.h
+++ b/winaccessibility/source/UAccCOM/stdafx.h
@@ -24,9 +24,7 @@
#ifndef INCLUDED_WINACCESSIBILITY_SOURCE_UACCCOM_STDAFX_H
#define INCLUDED_WINACCESSIBILITY_SOURCE_UACCCOM_STDAFX_H
-#if _MSC_VER > 1000
#pragma once
-#endif // _MSC_VER > 1000
// this turns off ATL's locking in the COM component implementations
// (we don't need it since we use SolarMutex instead)