drop various _MSC_VER < 1900 conditionals
Change-Id: I68d93b260db1f542bb3b44858b61b2d30ae93530 Reviewed-on: https://gerrit.libreoffice.org/34856 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
@@ -44,7 +44,6 @@ namespace connectivity
|
|||||||
public:
|
public:
|
||||||
//virtual dtor to allow this to be the root of the class hierarchy
|
//virtual dtor to allow this to be the root of the class hierarchy
|
||||||
virtual ~OCode();
|
virtual ~OCode();
|
||||||
#if !defined _MSC_VER || _MSC_VER >= 1900
|
|
||||||
//but that disables the default move ctor
|
//but that disables the default move ctor
|
||||||
OCode(OCode&&) = default;
|
OCode(OCode&&) = default;
|
||||||
//but that disables the rest of default ctors
|
//but that disables the rest of default ctors
|
||||||
@@ -53,7 +52,6 @@ namespace connectivity
|
|||||||
//and same issue for the assignment operators
|
//and same issue for the assignment operators
|
||||||
OCode& operator=(const OCode&) = default;
|
OCode& operator=(const OCode&) = default;
|
||||||
OCode& operator=(OCode&&) = default;
|
OCode& operator=(OCode&&) = default;
|
||||||
#endif
|
|
||||||
|
|
||||||
static void * SAL_CALL operator new( size_t nSize )
|
static void * SAL_CALL operator new( size_t nSize )
|
||||||
{ return ::rtl_allocateMemory( nSize ); }
|
{ return ::rtl_allocateMemory( nSize ); }
|
||||||
|
@@ -49,9 +49,6 @@ typedef unsigned int uint32_t;
|
|||||||
typedef signed long long int64_t;
|
typedef signed long long int64_t;
|
||||||
typedef unsigned long long uint64_t;
|
typedef unsigned long long uint64_t;
|
||||||
|
|
||||||
#if _MSC_VER < 1800
|
|
||||||
typedef double float_t;
|
|
||||||
#endif
|
|
||||||
typedef unsigned long _cl_dword_t;
|
typedef unsigned long _cl_dword_t;
|
||||||
/* undef size_t size_t */
|
/* undef size_t size_t */
|
||||||
|
|
||||||
|
8
external/firebird/firebird-cygwin-msvc.patch
vendored
8
external/firebird/firebird-cygwin-msvc.patch
vendored
@@ -56,7 +56,7 @@
|
|||||||
|
|
||||||
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
|
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
|
||||||
significant byte first (like Motorola and SPARC, unlike Intel). */
|
significant byte first (like Motorola and SPARC, unlike Intel). */
|
||||||
@@ -703,3 +703,40 @@
|
@@ -703,3 +703,34 @@
|
||||||
#ifndef HAVE_SOCKLEN_T
|
#ifndef HAVE_SOCKLEN_T
|
||||||
typedef int socklen_t;
|
typedef int socklen_t;
|
||||||
#endif
|
#endif
|
||||||
@@ -88,15 +88,9 @@
|
|||||||
+#define HAVE_GETPAGESIZE
|
+#define HAVE_GETPAGESIZE
|
||||||
+
|
+
|
||||||
+#if defined _MSC_VER
|
+#if defined _MSC_VER
|
||||||
+#if _MSC_VER < 1500
|
|
||||||
+#define vsnprintf _vsnprintf
|
|
||||||
+#endif
|
|
||||||
+#define isnan _isnan
|
+#define isnan _isnan
|
||||||
+#endif
|
+#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-15 11:31:26.366735500 +0200
|
||||||
+++ src/common/common.h 2016-07-17 16:18:39.121579400 +0200
|
+++ src/common/common.h 2016-07-17 16:18:39.121579400 +0200
|
||||||
@@ -551,15 +551,6 @@
|
@@ -551,15 +551,6 @@
|
||||||
|
2
external/mysqlcppconn/config.h
vendored
2
external/mysqlcppconn/config.h
vendored
@@ -6,7 +6,7 @@
|
|||||||
#define HAVE_FUNCTION_STRTOL 1
|
#define HAVE_FUNCTION_STRTOL 1
|
||||||
#define HAVE_FUNCTION_STRTOULL 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
|
#define HAVE_STDINT_H
|
||||||
#ifndef _MSC_VER
|
#ifndef _MSC_VER
|
||||||
#define HAVE_INTTYPES_H
|
#define HAVE_INTTYPES_H
|
||||||
|
14
external/neon/configs/config.h
vendored
14
external/neon/configs/config.h
vendored
@@ -235,18 +235,10 @@
|
|||||||
#define HAVE_SIGNAL_H 1
|
#define HAVE_SIGNAL_H 1
|
||||||
|
|
||||||
/* Define to 1 if you have the `snprintf' function. */
|
/* Define to 1 if you have the `snprintf' function. */
|
||||||
#ifdef UNX
|
#if defined( UNX ) || defined(_MSC_VER)
|
||||||
#define HAVE_SNPRINTF 1
|
#define HAVE_SNPRINTF 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef _WIN32
|
|
||||||
#if _MSC_VER >= 1900 // VS 2015
|
|
||||||
#define HAVE_SNPRINTF 1
|
|
||||||
#else
|
|
||||||
#define snprintf _snprintf
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Define to 1 if the system has the type `socklen_t'. */
|
/* Define to 1 if the system has the type `socklen_t'. */
|
||||||
#ifdef UNX
|
#ifdef UNX
|
||||||
#define HAVE_SOCKLEN_T 1
|
#define HAVE_SOCKLEN_T 1
|
||||||
@@ -337,7 +329,7 @@
|
|||||||
/* Define if the timezone global is available */
|
/* Define if the timezone global is available */
|
||||||
#ifndef MACOSX
|
#ifndef MACOSX
|
||||||
#define HAVE_TIMEZONE 1
|
#define HAVE_TIMEZONE 1
|
||||||
#if defined(_MSC_VER) && _MSC_VER >= 1900 // VS 2015
|
#if defined(_MSC_VER)
|
||||||
#define timezone _timezone
|
#define timezone _timezone
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
@@ -359,7 +351,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Define to 1 if you have the `vsnprintf' function. */
|
/* 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
|
#define HAVE_VSNPRINTF 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
6
external/redland/raptor/raptor_config.h
vendored
6
external/redland/raptor/raptor_config.h
vendored
@@ -364,13 +364,7 @@
|
|||||||
# endif
|
# endif
|
||||||
|
|
||||||
# ifdef _MSC_VER
|
# ifdef _MSC_VER
|
||||||
# if _MSC_VER >= 1300
|
|
||||||
# define __func__ __FUNCTION__
|
# define __func__ __FUNCTION__
|
||||||
# else
|
|
||||||
/* better than nothing */
|
|
||||||
# define raptor_str(s) #s
|
|
||||||
# define __func__ "func@" __FILE__ ":" raptor_str(__LINE__)
|
|
||||||
# endif
|
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
# define RAPTOR_INLINE __inline
|
# define RAPTOR_INLINE __inline
|
||||||
|
6
external/redland/rasqal/rasqal-msvc.patch.1
vendored
6
external/redland/rasqal/rasqal-msvc.patch.1
vendored
@@ -1,13 +1,11 @@
|
|||||||
diff -ru rasqal.orig/src/win32_rasqal_config.h rasqal/src/win32_rasqal_config.h
|
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.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
|
+++ 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 */
|
/* MS names for these functions */
|
||||||
// next line breaks build on wntmsci12
|
// next line breaks build on wntmsci12
|
||||||
//#define vsnprintf _vsnprintf
|
//#define vsnprintf _vsnprintf
|
||||||
+#if _MSC_VER < 1900 // older than VC 2015
|
-#define snprintf _snprintf
|
||||||
#define snprintf _snprintf
|
|
||||||
+#endif
|
|
||||||
#define access _access
|
#define access _access
|
||||||
#define stricmp _stricmp
|
#define stricmp _stricmp
|
||||||
#define strnicmp _strnicmp
|
#define strnicmp _strnicmp
|
||||||
|
@@ -1,12 +1,10 @@
|
|||||||
--- redland.orig/src/win32_rdf_config.h 2015-09-02 23:12:12.894126138 +0200
|
--- 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
|
+++ 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 */
|
/* MS names for these functions */
|
||||||
// next line breaks build on wntmsci12
|
// next line breaks build on wntmsci12
|
||||||
//#define vsnprintf _vsnprintf
|
//#define vsnprintf _vsnprintf
|
||||||
+#if _MSC_VER < 1900 // older than VC 2015
|
-#define snprintf _snprintf
|
||||||
#define snprintf _snprintf
|
|
||||||
+#endif
|
|
||||||
#define access _access
|
#define access _access
|
||||||
#define stricmp _stricmp
|
#define stricmp _stricmp
|
||||||
#define strnicmp _strnicmp
|
#define strnicmp _strnicmp
|
||||||
|
@@ -38,9 +38,6 @@
|
|||||||
# define access _access
|
# define access _access
|
||||||
|
|
||||||
# define putenv _putenv
|
# define putenv _putenv
|
||||||
# if _MSC_VER < 1900
|
|
||||||
# define stat _stat
|
|
||||||
# endif
|
|
||||||
# define DELETE_DIR L"tobedeleted"
|
# define DELETE_DIR L"tobedeleted"
|
||||||
# define CALLBACK_BACKUP_EXT L".moz-callback"
|
# define CALLBACK_BACKUP_EXT L".moz-callback"
|
||||||
|
|
||||||
@@ -48,25 +45,6 @@
|
|||||||
# define NS_T(str) L ## str
|
# define NS_T(str) L ## str
|
||||||
# define NS_SLASH NS_T('\\')
|
# 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, ...)
|
static inline int mywcsprintf(WCHAR* dest, size_t count, const WCHAR* fmt, ...)
|
||||||
{
|
{
|
||||||
size_t _count = count - 1;
|
size_t _count = count - 1;
|
||||||
|
@@ -32,12 +32,6 @@ extern "C" {
|
|||||||
|
|
||||||
void sal_detail_initialize(int argc, char ** argv)
|
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();
|
sal_initGlobalTimer();
|
||||||
// SetProcessDEPPolicy(PROCESS_DEP_ENABLE);
|
// SetProcessDEPPolicy(PROCESS_DEP_ENABLE);
|
||||||
// SetDllDirectoryW(L"");
|
// SetDllDirectoryW(L"");
|
||||||
|
@@ -40,7 +40,7 @@ in this Software without prior written authorization from the X Consortium.
|
|||||||
#ifdef _MSC_VER /* Define ssize_t */
|
#ifdef _MSC_VER /* Define ssize_t */
|
||||||
|
|
||||||
#if !defined(_W64)
|
#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
|
#define _W64 __w64
|
||||||
#else
|
#else
|
||||||
#define _W64
|
#define _W64
|
||||||
|
@@ -514,7 +514,7 @@ void setTimeZone(stoc_javavm::JVM * pjvm) throw() {
|
|||||||
tmData = localtime(&clock);
|
tmData = localtime(&clock);
|
||||||
#ifdef MACOSX
|
#ifdef MACOSX
|
||||||
char * p = tmData->tm_zone;
|
char * p = tmData->tm_zone;
|
||||||
#elif defined(_MSC_VER) && _MSC_VER >= 1900
|
#elif defined(_MSC_VER)
|
||||||
char * p = _tzname[0];
|
char * p = _tzname[0];
|
||||||
(void)tmData;
|
(void)tmData;
|
||||||
#else
|
#else
|
||||||
|
@@ -818,21 +818,10 @@ namespace {
|
|||||||
}
|
}
|
||||||
|
|
||||||
WatchdogTimings::WatchdogTimings()
|
WatchdogTimings::WatchdogTimings()
|
||||||
: maTimingValues
|
: 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
|
|
||||||
{{6, 20} /* 1.5s, 5s */, {20, 120} /* 5s, 30s */,
|
{{6, 20} /* 1.5s, 5s */, {20, 120} /* 5s, 30s */,
|
||||||
{60, 240} /* 15s, 60s */, {60, 240} /* 15s, 60s */}
|
{60, 240} /* 15s, 60s */, {60, 240} /* 15s, 60s */}
|
||||||
#if defined _MSC_VER && _MSC_VER <= 1800
|
|
||||||
)
|
|
||||||
#else
|
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
, mbRelaxed(false)
|
, mbRelaxed(false)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@@ -24,9 +24,7 @@
|
|||||||
#ifndef INCLUDED_WINACCESSIBILITY_SOURCE_UACCCOM_STDAFX_H
|
#ifndef INCLUDED_WINACCESSIBILITY_SOURCE_UACCCOM_STDAFX_H
|
||||||
#define INCLUDED_WINACCESSIBILITY_SOURCE_UACCCOM_STDAFX_H
|
#define INCLUDED_WINACCESSIBILITY_SOURCE_UACCCOM_STDAFX_H
|
||||||
|
|
||||||
#if _MSC_VER > 1000
|
|
||||||
#pragma once
|
#pragma once
|
||||||
#endif // _MSC_VER > 1000
|
|
||||||
|
|
||||||
// this turns off ATL's locking in the COM component implementations
|
// this turns off ATL's locking in the COM component implementations
|
||||||
// (we don't need it since we use SolarMutex instead)
|
// (we don't need it since we use SolarMutex instead)
|
||||||
|
Reference in New Issue
Block a user