Jacek Caban : widl: Define __REQUIRED_RPCNDR_H_VERSION__ in generated headers.

Alexandre Julliard julliard at winehq.org
Thu Sep 22 13:39:48 CDT 2011


Module: wine
Branch: master
Commit: c7602d51b33e6fd74ef7cb87a5f50616f5a8a31d
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=c7602d51b33e6fd74ef7cb87a5f50616f5a8a31d

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Thu Sep 22 15:01:50 2011 +0200

widl: Define __REQUIRED_RPCNDR_H_VERSION__ in generated headers.

---

 tools/widl/header.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/tools/widl/header.c b/tools/widl/header.c
index 579ef5c..fc9cbf1 100644
--- a/tools/widl/header.c
+++ b/tools/widl/header.c
@@ -1358,6 +1358,11 @@ void write_header(const statement_list_t *stmts)
     return;
   }
   fprintf(header, "/*** Autogenerated by WIDL %s from %s - Do not edit ***/\n\n", PACKAGE_VERSION, input_name);
+
+  fprintf(header, "#ifndef __REQUIRED_RPCNDR_H_VERSION__\n");
+  fprintf(header, "#define __REQUIRED_RPCNDR_H_VERSION__ 475\n");
+  fprintf(header, "#endif\n\n");
+
   fprintf(header, "#include <rpc.h>\n" );
   fprintf(header, "#include <rpcndr.h>\n\n" );
 




More information about the wine-cvs mailing list