Mercurial > dwindows
diff win/dw.c @ 1630:48fabb2f93c5
On Windows with the correct -DUNICODE -D_UNICODE and #include <tchar.h> lines
the hacky #ifdefs I had in the source file are no longer needed. Removed.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Wed, 28 Mar 2012 16:29:35 +0000 |
parents | d97e3f7f4e47 |
children | 0e6c2aeed041 |
line wrap: on
line diff
--- a/win/dw.c Wed Mar 28 16:14:49 2012 +0000 +++ b/win/dw.c Wed Mar 28 16:29:35 2012 +0000 @@ -455,43 +455,9 @@ WideCharToMultiByte(CP_UTF8, 0, widestring, -1, retbuf, WideCharToMultiByte(CP_UTF8, 0, widestring, -1, NULL, 0, NULL, NULL), NULL, NULL); return retbuf; } -/* FIXME: Not sure why this is needed */ -#ifndef _tstol -#define _tstol _wtol -#endif -#ifndef _tcscpy -#define _tcscpy wcscpy -#endif -#ifndef _sntprintf -#define _sntprintf _snwprintf -#endif -#ifndef _stprintf -#define _stprintf _swprintf -#endif -#ifndef _tcsftime -#define _tcsftime wcsftime -#endif - #else #define UTF8toWide(a) a #define WideToUTF8(a) a -/* FIXME: Not sure why this is needed */ -#ifndef _tstol -#define _tstol atol -#endif -#ifndef _tcscpy -#define _tcscpy strcpy -#endif -#ifndef _sntprintf -#define _sntprintf _snprintf -#endif -#ifndef _stprintf -#define _stprintf sprintf -#endif -#ifndef _tcsftime -#define _tcsftime strftime -#endif - #endif DWORD GetDllVersion(LPCTSTR lpszDllName)