Browse Source

windows/SDL_tray.c, video/windows/SDL_surface_utils.h: use SDL_windows.h

Ozkan Sezer 3 months ago
parent
commit
578509c326
2 changed files with 4 additions and 5 deletions
  1. 3 4
      src/tray/windows/SDL_tray.c
  2. 1 1
      src/video/windows/SDL_surface_utils.h

+ 3 - 4
src/tray/windows/SDL_tray.c

@@ -21,13 +21,12 @@
 
 #include "SDL_internal.h"
 
-#include "../../video/windows/SDL_surface_utils.h"
-
-#include <windows.h>
+#include "../../core/windows/SDL_windows.h"
 #include <windowsx.h>
 #include <shellapi.h>
+#include <stdlib.h> /* FIXME: for mbstowcs_s, wcslen */
 
-#include <stdlib.h>
+#include "../../video/windows/SDL_surface_utils.h"
 
 #ifndef NOTIFYICON_VERSION_4
 #define NOTIFYICON_VERSION_4 4

+ 1 - 1
src/video/windows/SDL_surface_utils.h

@@ -23,7 +23,7 @@
 #ifndef SDL_surface_utils_h_
 #define SDL_surface_utils_h_
 
-#include <windows.h>
+#include "../../core/windows/SDL_windows.h"
 
 #ifdef __cplusplus
 extern "C" {