MinGW

Discussion about everything. New games, 3d math, development tips...
Post Reply
monkeycracks
Posts: 1029
Joined: Thu Apr 06, 2006 12:45 am
Location: Tennesee, USA
Contact:

MinGW

Post by monkeycracks »

Anyone know the MinGW equivilant of swprintf? I'm sure there's a different syntax for it -.-

swprintf(...); doesn't seem to be working in Dev-Cpp.
thephoenix
Posts: 19
Joined: Wed Jan 25, 2006 7:44 pm

Post by thephoenix »

http://www.die.net/doc/linux/man/man3/swprintf.3.html
(wchar.h declares swprintf)
(That is for GCC, but as MinGW uses GCC, that should be correct?)
EDIT: Yes, my MinGW knows that function...
CuteAlien
Admin
Posts: 9930
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post by CuteAlien »

Include that in some global header in your project:

Code: Select all

#ifdef __GNUWIN32__
#undef swprintf
#define   swprintf   _snwprintf
#endif 
monkeycracks
Posts: 1029
Joined: Thu Apr 06, 2006 12:45 am
Location: Tennesee, USA
Contact:

Post by monkeycracks »

Thanks.
Post Reply