Redirect swprintf() calls to _snwprintf() for Windows as they implemented a different function from ISO C (theirs does not take a count).

git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1426 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
master
Mike Frysinger 16 years ago
parent 46509a4cf7
commit 49cae0a0eb

@ -10,6 +10,9 @@
* src/part/part.c (part_print): Use const markings with const strings.
* src/cmd/include.c (cmd_include_or_script_run): Likewise.
* sysdep.h: Redirect swprintf() calls to _snwprintf() for Windows as they
implemented a different function from ISO C (theirs does not take a count).
2009-01-19 Kolja Waschk <kawk>
* doc/UrJTAG.txt,

@ -48,6 +48,9 @@
#include <windows.h>
#define geteuid() 0
#define getuid() 0
/* Microsoft uses a different swprintf() than ISO C requires */
#include <stdio.h>
#define swprintf _snwprintf
#endif
#endif /* SYSDEP_H */

Loading…
Cancel
Save