
#include "link-includes.h"
#include "utilities.h"

// Already declared in link-includes.h
// const char * linkgrammar_get_dict_locale(Dictionary dict);
// const char * linkgrammar_get_version(void);
// const char * linkgrammar_get_dict_version(Dictionary dict);

void dictionary_setup_locale(Dictionary dict);
void dictionary_setup_defines(Dictionary dict);
void afclass_init(Dictionary dict);
bool afdict_init(Dictionary dict);
void affix_list_add(Dictionary afdict, Afdict_class *, const char *);

#ifdef __MINGW32__
int callGetLocaleInfoEx(LPCWSTR, LCTYPE, LPWSTR, int);

#endif /* __MINGW32__ */


#include "link-includes.h"

// Already declared in link-includes.h
// const char * linkgrammar_get_dict_locale(Dictionary dict);
// const char * linkgrammar_get_version(void);
// const char * linkgrammar_get_dict_version(Dictionary dict);

void dictionary_setup_locale(Dictionary dict);
void dictionary_setup_defines(Dictionary dict);
void afclass_init(Dictionary dict);
bool afdict_init(Dictionary dict);
void affix_list_add(Dictionary afdict, Afdict_class *, const char *);

--- 
+++ 
@@ -1,5 +1,6 @@
 
 #include "link-includes.h"
+#include "utilities.h"
 
 // Already declared in link-includes.h
 // const char * linkgrammar_get_dict_locale(Dictionary dict);
@@ -11,3 +12,8 @@
 void afclass_init(Dictionary dict);
 bool afdict_init(Dictionary dict);
 void affix_list_add(Dictionary afdict, Afdict_class *, const char *);
+
+#ifdef __MINGW32__
+int callGetLocaleInfoEx(LPCWSTR, LCTYPE, LPWSTR, int);
+
+#endif /* __MINGW32__ */
MinGW: Add a missing prototype (callGetLocaleInfoEx())
