[Groonga-commit] groonga/groonga at c9b623c [master] Close related codes

Back to archive index

Kouhei Sutou null+****@clear*****
Wed Aug 1 16:17:18 JST 2018


Kouhei Sutou	2018-08-01 16:17:18 +0900 (Wed, 01 Aug 2018)

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

  Message:
    Close related codes

  Modified files:
    lib/grn.h

  Modified: lib/grn.h (+2 -6)
===================================================================
--- lib/grn.h    2018-08-01 16:15:25 +0900 (5cf6ab953)
+++ lib/grn.h    2018-08-01 16:17:18 +0900 (261140d13)
@@ -129,6 +129,7 @@ typedef int64_t off64_t;
 
 typedef SOCKET grn_sock;
 # define grn_sock_close(sock) closesocket(sock)
+# define GRN_INVALID_SOCKET INVALID_SOCKET
 
 # define CALLBACK __stdcall
 
@@ -165,6 +166,7 @@ typedef unsigned char uint_least8_t;
 # endif /* UINT_LEAST8_MAX */
 typedef int grn_sock;
 # define grn_sock_close(sock) close(sock)
+# define GRN_INVALID_SOCKET -1
 # define CALLBACK
 
 #endif /* WIN32 */
@@ -677,12 +679,6 @@ grn_str_greater(const uint8_t *ap, uint32_t as, const uint8_t *bp, uint32_t bs)
 
 #define GRN_NEXT_ADDR(p) (((byte *)(p)) + sizeof(*(p)))
 
-#ifdef WIN32
-# define GRN_INVALID_SOCKET INVALID_SOCKET
-#else /* WIN32 */
-# define GRN_INVALID_SOCKET -1
-#endif /* WIN32 */
-
 GRN_API void grn_sleep(uint32_t seconds);
 GRN_API void grn_nanosleep(uint64_t nanoseconds);
 
-------------- next part --------------
HTML����������������������������...
URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20180801/c97862f9/attachment.htm 



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