[Groonga-commit] groonga/groonga at 7c408a2 [master] windows: suppress warning by msgpack

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Jun 21 16:21:54 JST 2018


Kouhei Sutou	2018-06-21 16:21:54 +0900 (Thu, 21 Jun 2018)

  New Revision: 7c408a2bd6ff05198952d82e7fec425082a963eb
  https://github.com/groonga/groonga/commit/7c408a2bd6ff05198952d82e7fec425082a963eb

  Message:
    windows: suppress warning by msgpack

  Modified files:
    lib/grn_msgpack.h

  Modified: lib/grn_msgpack.h (+2 -2)
===================================================================
--- lib/grn_msgpack.h    2018-06-21 16:20:51 +0900 (b32ec93fd)
+++ lib/grn_msgpack.h    2018-06-21 16:21:54 +0900 (9b0bf7414)
@@ -21,9 +21,9 @@
 #include "grn.h"
 
 #ifdef GRN_WITH_MESSAGE_PACK
-# define _CRT_SECURE_NO_WARNINGS
+# define memcpy(dest, src, n) grn_memcpy(dest, src, n)
 # include <msgpack.h>
-# undef _CRT_SECURE_NO_WARNINGS
+# undef memcpy
 
 # if MSGPACK_VERSION_MAJOR < 1
 typedef unsigned int msgpack_size_t;
-------------- next part --------------
HTML����������������������������...
URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20180621/0caec3b0/attachment-0001.htm 



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