Просмотр исходного кода

fixed build error due to -Wunused-function

Ozkan Sezer 2 лет назад
Родитель
Сommit
77e59d4fa9
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      src/hidapi/mac/hid.c

+ 2 - 0
src/hidapi/mac/hid.c

@@ -214,6 +214,7 @@ static void free_hid_device(hid_device *dev)
 }
 }
 
 
 
 
+#ifndef HIDAPI_USING_SDL_RUNTIME
 /* The caller must free the returned string with free(). */
 /* The caller must free the returned string with free(). */
 static wchar_t *utf8_to_wchar_t(const char *utf8)
 static wchar_t *utf8_to_wchar_t(const char *utf8)
 {
 {
@@ -235,6 +236,7 @@ static wchar_t *utf8_to_wchar_t(const char *utf8)
 
 
 	return ret;
 	return ret;
 }
 }
+#endif
 
 
 
 
 /* Makes a copy of the given error message (and decoded according to the
 /* Makes a copy of the given error message (and decoded according to the