[Groonga-commit] groonga/groonga at 484b1d4 [master] windows: maybe support Visual C++ 2010

Back to archive index

Kouhei Sutou null+****@clear*****
Sun Jun 29 13:24:21 JST 2014


Kouhei Sutou	2014-06-29 13:24:21 +0900 (Sun, 29 Jun 2014)

  New Revision: 484b1d49fc3dd63ce30ea4b9706d74a4058562b7
  https://github.com/groonga/groonga/commit/484b1d49fc3dd63ce30ea4b9706d74a4058562b7

  Message:
    windows: maybe support Visual C++ 2010
    
    [groonga-dev,02454]
    
    Reported by cosmo0920. Thanks!!!

  Modified files:
    lib/str.c

  Modified: lib/str.c (+5 -0)
===================================================================
--- lib/str.c    2014-06-25 22:16:31 +0900 (0883757)
+++ lib/str.c    2014-06-29 13:24:21 +0900 (cf96cbd)
@@ -27,6 +27,11 @@
 #endif /* _ISOC99_SOURCE */
 #include <math.h>
 
+/* For Visual C++ 2010. Drop the code when we drop Visual C++ 2010 support. */
+#if _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����������������������������...
다운로드 



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