Module: wine Branch: master Commit: 1a0a61785058b63ad46617d21e6a0a530b003618 URL: https://gitlab.winehq.org/wine/wine/-/commit/1a0a61785058b63ad46617d21e6a0a5...
Author: Rémi Bernon rbernon@codeweavers.com Date: Wed Jan 25 23:23:45 2023 +0100
widl: Respect -N flag for imported files preprocessing.
---
tools/widl/widl.c | 6 ++++++ 1 file changed, 6 insertions(+)
diff --git a/tools/widl/widl.c b/tools/widl/widl.c index 7c83b4b3ac0..513fbe507f7 100644 --- a/tools/widl/widl.c +++ b/tools/widl/widl.c @@ -911,6 +911,12 @@ FILE *open_input_file( const char *path ) char *name; int ret;
+ if (no_preprocess) + { + if (!(file = fopen( path, "r" ))) error_loc( "Unable to open %s\n", path ); + return file; + } + name = make_temp_file( "widl", NULL ); if (!(file = fopen( name, "wt" ))) error_loc( "Could not open %s for writing\n", name ); ret = wpp_parse( path, file );