diff options
author | Werner Lemberg <wl@gnu.org> | 2009-03-19 08:27:59 +0100 |
---|---|---|
committer | Werner Lemberg <wl@gnu.org> | 2009-03-19 08:27:59 +0100 |
commit | a9ba23c85631af9b076768886d194a69abd114fe (patch) | |
tree | af3faaebea488deb93fa838c46fa221a096a58ed | |
parent | 91b127f70e76e4f94b6a7264c99a3270f5e9d12d (diff) | |
download | freetype2-a9ba23c85631af9b076768886d194a69abd114fe.tar.gz |
Remove unused Win32 code.
* builds/wince/ftdebug.c: Remove code guarded with `!_WIN32_WCE'.
Since Win32 is handled separately this is no longer needed.
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | builds/wince/ftdebug.c | 20 |
2 files changed, 11 insertions, 16 deletions
@@ -1,3 +1,10 @@ +2009-03-19 Werner Lemberg <wl@gnu.org> + + Remove unused Win32 code. + + * builds/wince/ftdebug.c: Remove code guarded with `!_WIN32_WCE'. + Since Win32 is handled separately this is no longer needed. + 2009-03-19 Vincent Richomme <richom.v@free.fr> Make `gzip' module compile on WinCE. diff --git a/builds/wince/ftdebug.c b/builds/wince/ftdebug.c index 8f7a9ab07..272415d3d 100644 --- a/builds/wince/ftdebug.c +++ b/builds/wince/ftdebug.c @@ -2,9 +2,9 @@ /* */ /* ftdebug.c */ /* */ -/* Debugging and logging component for Win32 (body). */ +/* Debugging and logging component for WinCE (body). */ /* */ -/* Copyright 1996-2001, 2002, 2005, 2008 by */ +/* Copyright 1996-2001, 2002, 2005, 2008, 2009 by */ /* David Turner, Robert Wilhelm, and Werner Lemberg. */ /* */ /* This file is part of the FreeType project, and may only be used, */ @@ -55,8 +55,6 @@ #include <windows.h> -#ifdef _WIN32_WCE - void OutputDebugStringEx( const char* str ) { @@ -71,12 +69,6 @@ OutputDebugStringW( buf ); } -#else - -#define OutputDebugStringEx OutputDebugStringA - -#endif - FT_BASE_DEF( void ) FT_Message( const char* fmt, ... ) @@ -149,19 +141,15 @@ FT_BASE_DEF( void ) ft_debug_init( void ) { -#ifdef _WIN32_WCE - /* Windows Mobile doesn't have environment API: */ /* GetEnvironmentStrings, GetEnvironmentVariable, getenv. */ /* */ /* FIXME!!! How to set debug mode? */ - const char* ft2_debug = 0; -#else + /* const char* ft2_debug = getenv( "FT2_DEBUG" ); */ - const char* ft2_debug = getenv( "FT2_DEBUG" ); + const char* ft2_debug = 0; -#endif if ( ft2_debug ) { |