mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 04:53:00 +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)
|
if(MSVC)
|
||||||
add_definitions(-Dsnprintf=_snprintf)
|
add_definitions(
|
||||||
|
-Dsnprintf=_snprintf
|
||||||
|
-Dvsnprintf=_vsnprintf)
|
||||||
list(APPEND SOURCE getopt.c)
|
list(APPEND SOURCE getopt.c)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
|
@ -266,7 +266,7 @@ void write_regscript( const statement_list_t *stmts )
|
||||||
{
|
{
|
||||||
FILE *f = fopen( regscript_name, "w" );
|
FILE *f = fopen( regscript_name, "w" );
|
||||||
if (!f) error( "Could not open %s for output\n", regscript_name );
|
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 );
|
error( "Failed to write to %s\n", regscript_name );
|
||||||
if (fclose( f ))
|
if (fclose( f ))
|
||||||
error( "Failed to write to %s\n", regscript_name );
|
error( "Failed to write to %s\n", regscript_name );
|
||||||
|
|
|
@ -3,7 +3,8 @@ if(MSVC)
|
||||||
add_definitions(
|
add_definitions(
|
||||||
-Dsnprintf=_snprintf
|
-Dsnprintf=_snprintf
|
||||||
-Dstrtoull=_strtoui64
|
-Dstrtoull=_strtoui64
|
||||||
-Dstrtoll=_strtoi64)
|
-Dstrtoll=_strtoi64
|
||||||
|
-Dvsnprintf=_vsnprintf)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
list(APPEND SOURCE
|
list(APPEND SOURCE
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue