[Groonga-commit] groonga/groonga at 8bcccc1 [master] windows: name special language IDs

Back to archive index

Kouhei Sutou null+****@clear*****
Wed Jul 15 22:04:46 JST 2015


Kouhei Sutou	2015-07-15 22:04:46 +0900 (Wed, 15 Jul 2015)

  New Revision: 8bcccc1e7ab53e326115139eec33c45da6069a76
  https://github.com/groonga/groonga/commit/8bcccc1e7ab53e326115139eec33c45da6069a76

  Message:
    windows: name special language IDs

  Modified files:
    lib/error.c

  Modified: lib/error.c (+6 -1)
===================================================================
--- lib/error.c    2015-07-15 18:31:37 +0900 (5613942)
+++ lib/error.c    2015-07-15 22:04:46 +0900 (f4bd87d)
@@ -24,6 +24,11 @@
 #include <string.h>
 
 #ifdef WIN32
+
+# define LANG_ID_NEUTRAL()        MAKELANGID(LANG_NEUTRAL, SUBLANG_NEUTRAL)
+# define LANG_ID_USER_DEFAULT()   MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT)
+# define LANG_ID_SYSTEM_DEFAULT() MAKELANGID(LANG_NEUTRAL, SUBLANG_SYS_DEFAULT)
+
 const char *
 grn_current_error_message(void)
 {
@@ -36,7 +41,7 @@ grn_current_error_message(void)
                                 FORMAT_MESSAGE_IGNORE_INSERTS,
                                 NULL,
                                 error_code,
-                                MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
+                                LANG_ID_USER_DEFAULT(),
                                 message,
                                 ERROR_MESSAGE_BUFFER_SIZE,
                                 NULL);
-------------- next part --------------
HTML����������������������������...
Download 



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