remove explicit unicode def/undefs

This commit is contained in:
Brad Parker 2016-12-02 12:46:32 -05:00
parent 44b95a1602
commit d891f1c90b
8 changed files with 71 additions and 70 deletions

View File

@ -18,12 +18,10 @@
#define WIN32_COMMON_H__
#include <string.h>
#include <encodings/win32.h>
#ifndef _XBOX
#define WIN32_LEAN_AND_MEAN
#define UNICODE
#include <tchar.h>
#include <wchar.h>
#include <windows.h>
#endif

View File

@ -15,13 +15,11 @@
* If not, see <http://www.gnu.org/licenses/>.
*/
#include <encodings/win32.h>
#ifdef _XBOX
#include <xtl.h>
#include <xgraphics.h>
#else
#define UNICODE
#include <tchar.h>
#include <wchar.h>
#endif
#include <formats/image.h>

View File

@ -29,10 +29,7 @@
#define WM_MOUSEWHEEL 0x020A
#endif
#define UNICODE
#include <tchar.h>
#include <wchar.h>
#include <encodings/win32.h>
#include <dinput.h>
#include <stdlib.h>

View File

@ -53,7 +53,6 @@ extern "C" {
}
#endif
#undef UNICODE /* Do not bother with UNICODE at this time. */
#include <direct.h>
#include <stddef.h>
#include <math.h>

View File

@ -28,7 +28,17 @@
#define UNICODE
#include <tchar.h>
#include <wchar.h>
#ifdef __cplusplus
extern "C" {
#endif
#include <encodings/utf.h>
#ifdef __cplusplus
}
#endif
#endif
#endif

View File

@ -45,11 +45,12 @@
#include <time.h>
#endif
#ifdef _WIN32
#include <encodings/win32.h>
#endif
#if defined(_WIN32) && !defined(_XBOX)
#define WIN32_LEAN_AND_MEAN
#define UNICODE
#include <tchar.h>
#include <wchar.h>
#include <windows.h>
#elif defined(_WIN32) && defined(_XBOX)
#include <Xtl.h>

View File

@ -26,9 +26,7 @@
#include <errno.h>
#if defined(_WIN32)
# define UNICODE
# include <tchar.h>
# include <wchar.h>
#include <encodings/win32.h>
# ifdef _MSC_VER
# define setmode _setmode
# endif