[Groonga-commit] groonga/groonga at e56ce5f [master] msvc: remove codes for MSVC < 2013

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Apr 26 15:58:05 JST 2016


Kouhei Sutou	2016-04-26 15:58:05 +0900 (Tue, 26 Apr 2016)

  New Revision: e56ce5f94163a2dd333845a4f8dd811be80a58c3
  https://github.com/groonga/groonga/commit/e56ce5f94163a2dd333845a4f8dd811be80a58c3

  Message:
    msvc: remove codes for MSVC < 2013

  Modified files:
    lib/grn.h
    lib/str.c

  Modified: lib/grn.h (+0 -6)
===================================================================
--- lib/grn.h    2016-04-26 15:51:26 +0900 (c180b08)
+++ lib/grn.h    2016-04-26 15:58:05 +0900 (a305e8f)
@@ -109,13 +109,7 @@
 #  endif
 # endif
 
-# if !defined(__GNUC__) && _MSC_VER < 1500
-#  define vsnprintf(str, size, format, ap) _vsnprintf(str, size, format, ap)
-# endif /* !defined(__GNUC__) && _MSC_VER < 1500 */
 # define getpid() _getpid()
-# if !defined(__GNUC__) && _MSC_VER < 1400
-#  define fstat(fd, buf) _fstat(fd, buf)
-# endif /* !defined(__GNUC__) && _MSC_VER < 1400 */
 
 # ifndef __GNUC__
 typedef SSIZE_T ssize_t;

  Modified: lib/str.c (+0 -5)
===================================================================
--- lib/str.c    2016-04-26 15:51:26 +0900 (e34e1bc)
+++ lib/str.c    2016-04-26 15:58:05 +0900 (d16682f)
@@ -34,11 +34,6 @@
 # endif /* _WIN64 */
 #endif /* defined(HAVE__GMTIME64_S) && defined(__GNUC__) */
 
-/* For Visual C++ 2010. Drop the code when we drop Visual C++ 2010 support. */
-#if defined(_MSC_VER) && _MSC_VER < 1800
-# define va_copy(destination, source) destination = source
-#endif
-
 inline static int
 grn_str_charlen_utf8(grn_ctx *ctx, const unsigned char *str, const unsigned char *end)
 {
-------------- next part --------------
HTML����������������������������...
Télécharger 



More information about the Groonga-commit mailing list
Back to archive index