removed some compilation warnings for mingw
This commit is contained in:
		@@ -30,6 +30,10 @@
 | 
				
			|||||||
#include <commdlg.h>
 | 
					#include <commdlg.h>
 | 
				
			||||||
#include <stdio.h>
 | 
					#include <stdio.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					FILE* _wfopen(const wchar_t *, const wchar_t *);
 | 
				
			||||||
 | 
					wchar_t* wcsrchr(const wchar_t *, wchar_t);
 | 
				
			||||||
 | 
					wchar_t* wcscpy(wchar_t *, const wchar_t *);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#define UTF8ToString(S) (wchar_t *)SDL_iconv_string("UTF-16LE", "UTF-8", (char *)(S), SDL_strlen(S)+1)
 | 
					#define UTF8ToString(S) (wchar_t *)SDL_iconv_string("UTF-16LE", "UTF-8", (char *)(S), SDL_strlen(S)+1)
 | 
				
			||||||
#define StringToUTF8(S) SDL_iconv_string("UTF-8", "UTF-16LE", (char *)(S), (SDL_wcslen(S)+1)*sizeof(wchar_t))
 | 
					#define StringToUTF8(S) SDL_iconv_string("UTF-8", "UTF-16LE", (char *)(S), (SDL_wcslen(S)+1)*sizeof(wchar_t))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										3
									
								
								src/fs.c
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								src/fs.c
									
									
									
									
									
								
							@@ -108,6 +108,9 @@ bool fsIsInPublicDir(FileSystem* fs)
 | 
				
			|||||||
#define UTF8ToString(S) (wchar_t *)SDL_iconv_string("UTF-16LE", "UTF-8", (char *)(S), SDL_strlen(S)+1)
 | 
					#define UTF8ToString(S) (wchar_t *)SDL_iconv_string("UTF-16LE", "UTF-8", (char *)(S), SDL_strlen(S)+1)
 | 
				
			||||||
#define StringToUTF8(S) SDL_iconv_string("UTF-8", "UTF-16LE", (char *)(S), (SDL_wcslen(S)+1)*sizeof(wchar_t))
 | 
					#define StringToUTF8(S) SDL_iconv_string("UTF-8", "UTF-16LE", (char *)(S), (SDL_wcslen(S)+1)*sizeof(wchar_t))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					FILE* _wfopen(const wchar_t *, const wchar_t *);
 | 
				
			||||||
 | 
					int _wremove(const wchar_t *);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#define TIC_DIR _WDIR
 | 
					#define TIC_DIR _WDIR
 | 
				
			||||||
#define tic_dirent _wdirent
 | 
					#define tic_dirent _wdirent
 | 
				
			||||||
#define tic_stat_struct _stat
 | 
					#define tic_stat_struct _stat
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user