unicode_gif.h: fix -Wdeclaration-after-statement
when building for windows with _UNICODE defined
unicode_gif.h|49 col 3| warning: ISO C90 forbids mixed declarations and
code [-Wdeclaration-after-statement]
@@ -45,7 +45,7 @@ static GifFileType* DGifOpenFileUnicode(const W_CHAR* file_name, int* error) {
}
#if defined(_WIN32) && defined(_UNICODE)
-
+ {
int file_handle = _wopen(file_name, _O_RDONLY | _O_BINARY);
if (file_handle == -1) {
if (error != NULL) *error = D_GIF_ERR_OPEN_FAILED;
@@ -57,6 +57,7 @@ static GifFileType* DGifOpenFileUnicode(const W_CHAR* file_name, int* error) {
#else
return DGifOpenFileHandle(file_handle);
#endif
+ }
#else
