mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 01:55:41 +00:00
[WIDL]
- Fix build with MSVC - Fix bug on rgs file creation. Will be sent to wine svn path=/trunk/; revision=57196
This commit is contained in:
parent
8fdc3a3391
commit
f8a94143da
3 changed files with 6 additions and 3 deletions
|
@ -1,6 +1,8 @@
|
|||
|
||||
if(MSVC)
|
||||
add_definitions(-Dsnprintf=_snprintf)
|
||||
add_definitions(
|
||||
-Dsnprintf=_snprintf
|
||||
-Dvsnprintf=_vsnprintf)
|
||||
list(APPEND SOURCE getopt.c)
|
||||
endif()
|
||||
|
||||
|
|
|
@ -266,7 +266,7 @@ void write_regscript( const statement_list_t *stmts )
|
|||
{
|
||||
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 );
|
||||
|
|
|
@ -3,7 +3,8 @@ if(MSVC)
|
|||
add_definitions(
|
||||
-Dsnprintf=_snprintf
|
||||
-Dstrtoull=_strtoui64
|
||||
-Dstrtoll=_strtoi64)
|
||||
-Dstrtoll=_strtoi64
|
||||
-Dvsnprintf=_vsnprintf)
|
||||
endif()
|
||||
|
||||
list(APPEND SOURCE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue