Skip to content

Commit

Permalink
[Nokia N-Gage] Remove redundant vsnprintf definition, add platform-sp…
Browse files Browse the repository at this point in the history
…ecific va_copy declaration to SDL_vacopy.h
  • Loading branch information
mupfdev committed Feb 9, 2025
1 parent 9782847 commit db09979
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/core/ngage/SDL_ngage.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ void va_copy(char *dest, char *src)
dest = src;
}

int vsnprintf(char *str, size_t size, const char *format, va_list ap)
{
// Safely do nothing.
return 0;
}
//int vsnprintf(char *str, size_t size, const char *format, va_list ap)
//{
// // Safely do nothing.
// return 0;
//}
3 changes: 3 additions & 0 deletions src/stdlib/SDL_vacopy.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,7 @@

#elif defined(__GNUC__) && (__GNUC__ < 3)
#define va_copy(dst, src) __va_copy(dst, src)

#elif defined(__SYMBIAN32__)
extern void va_copy(char* dest, char* src);
#endif

0 comments on commit db09979

Please sign in to comment.