Bladeren bron

storage: SDL_WriteStorageFile() wasn't marked as SDLCALL.

Fixes #9594.
Ryan C. Gordon 1 jaar geleden
bovenliggende
commit
7a36504952
4 gewijzigde bestanden met toevoegingen van 4 en 1 verwijderingen
  1. 1 1
      include/SDL3/SDL_storage.h
  2. 1 0
      src/dynapi/SDL_dynapi.sym
  3. 1 0
      src/dynapi/SDL_dynapi_overrides.h
  4. 1 0
      src/dynapi/SDL_dynapi_procs.h

+ 1 - 1
include/SDL3/SDL_storage.h

@@ -252,7 +252,7 @@ extern DECLSPEC int SDLCALL SDL_ReadStorageFile(SDL_Storage *storage, const char
  * \sa SDL_ReadStorageFile
  * \sa SDL_StorageReady
  */
-extern DECLSPEC int SDL_WriteStorageFile(SDL_Storage *storage, const char *path, const void *source, Uint64 length);
+extern DECLSPEC int SDLCALL SDL_WriteStorageFile(SDL_Storage *storage, const char *path, const void *source, Uint64 length);
 
 /**
  * Create a directory in a writable storage container.

+ 1 - 0
src/dynapi/SDL_dynapi.sym

@@ -1014,6 +1014,7 @@ SDL3_0.0.0 {
     SDL_wcsnstr;
     SDL_wcsstr;
     SDL_wcstol;
+    SDL_WriteStorageFile;
     # extra symbols go here (don't modify this line)
   local: *;
 };

+ 1 - 0
src/dynapi/SDL_dynapi_overrides.h

@@ -1038,3 +1038,4 @@
 #define SDL_wcsnstr SDL_wcsnstr_REAL
 #define SDL_wcsstr SDL_wcsstr_REAL
 #define SDL_wcstol SDL_wcstol_REAL
+#define SDL_WriteStorageFile SDL_WriteStorageFile_REAL

+ 1 - 0
src/dynapi/SDL_dynapi_procs.h

@@ -1054,3 +1054,4 @@ SDL_DYNAPI_PROC(size_t,SDL_wcsnlen,(const wchar_t *a, size_t b),(a,b),return)
 SDL_DYNAPI_PROC(wchar_t*,SDL_wcsnstr,(const wchar_t *a, const wchar_t *b, size_t c),(a,b,c),return)
 SDL_DYNAPI_PROC(wchar_t*,SDL_wcsstr,(const wchar_t *a, const wchar_t *b),(a,b),return)
 SDL_DYNAPI_PROC(long,SDL_wcstol,(const wchar_t *a, wchar_t **b, int c),(a,b,c),return)
+SDL_DYNAPI_PROC(int,SDL_WriteStorageFile,(SDL_Storage *a, const char *b, const void *c, Uint64 d),(a,b,c,d),return)