Author: jgardou Date: Wed Aug 29 12:25:55 2012 New Revision: 57196
URL: http://svn.reactos.org/svn/reactos?rev=57196&view=rev Log: [WIDL] - Fix build with MSVC - Fix bug on rgs file creation. Will be sent to wine
Modified: trunk/reactos/tools/widl/CMakeLists.txt trunk/reactos/tools/widl/register.c trunk/reactos/tools/wpp/CMakeLists.txt
Modified: trunk/reactos/tools/widl/CMakeLists.txt URL: http://svn.reactos.org/svn/reactos/trunk/reactos/tools/widl/CMakeLists.txt?r... ============================================================================== --- trunk/reactos/tools/widl/CMakeLists.txt [iso-8859-1] (original) +++ trunk/reactos/tools/widl/CMakeLists.txt [iso-8859-1] Wed Aug 29 12:25:55 2012 @@ -1,6 +1,8 @@
if(MSVC) - add_definitions(-Dsnprintf=_snprintf) + add_definitions( + -Dsnprintf=_snprintf + -Dvsnprintf=_vsnprintf) list(APPEND SOURCE getopt.c) endif()
Modified: trunk/reactos/tools/widl/register.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/tools/widl/register.c?rev=5... ============================================================================== --- trunk/reactos/tools/widl/register.c [iso-8859-1] (original) +++ trunk/reactos/tools/widl/register.c [iso-8859-1] Wed Aug 29 12:25:55 2012 @@ -266,7 +266,7 @@ { FILE *f = fopen( regscript_name, "w" ); if (!f) error( "Could not open %s for output\n", regscript_name ); - if (fwrite( output_buffer, output_buffer_pos, 1, f ) != output_buffer_pos) + if (fwrite( output_buffer, 1, output_buffer_pos, f ) != output_buffer_pos) error( "Failed to write to %s\n", regscript_name ); if (fclose( f )) error( "Failed to write to %s\n", regscript_name );
Modified: trunk/reactos/tools/wpp/CMakeLists.txt URL: http://svn.reactos.org/svn/reactos/trunk/reactos/tools/wpp/CMakeLists.txt?re... ============================================================================== --- trunk/reactos/tools/wpp/CMakeLists.txt [iso-8859-1] (original) +++ trunk/reactos/tools/wpp/CMakeLists.txt [iso-8859-1] Wed Aug 29 12:25:55 2012 @@ -3,7 +3,8 @@ add_definitions( -Dsnprintf=_snprintf -Dstrtoull=_strtoui64 - -Dstrtoll=_strtoi64) + -Dstrtoll=_strtoi64 + -Dvsnprintf=_vsnprintf) endif()
list(APPEND SOURCE