#ifndef INSTALL_UNICODE_H | |
#define INSTALL_UNICODE_H | |
#ifdef _WIN32 | |
#ifdef UNICODE | |
#define _UNICODE | |
#endif | |
#include <windows.h> | |
#include <tchar.h> | |
#include <ctype.h> | |
#define _T_INSTALL _T | |
#else /* Platforms other than Windows */ | |
#define _TCHAR char | |
#define _T_INSTALL(s) s | |
#define _fgetts fgets | |
#define _fputts fputs | |
#define _stat stat | |
#define _stprintf sprintf | |
#define _stscanf sscanf | |
#define _tcscat strcat | |
#define _tcschr strchr | |
#define _tcscmp strcmp | |
#define _tcscpy strcpy | |
#define _tcsdup strdup | |
#define _tcsicmp strcasecmp | |
#define _tcslen strlen | |
#define _tcsncpy strncpy | |
#define _tcsrchr strrchr | |
#define _tfopen fopen | |
#define _tgetcwd getcwd | |
#define _tgetenv getenv | |
#ifndef LINUX | |
#define _totupper toupper | |
#endif /* LINUX */ | |
#define _tprintf printf | |
#define _tstat stat | |
#define _ttempnam tempnam | |
#define _tmkdir(path) mkdir((path),00700) | |
#define _trmdir rmdir | |
#define _tremove remove | |
#define _tcsftime strftime | |
#endif /* _WIN32 */ | |
#endif /* INSTALL_UNICODE_H */ |