[WIDL] Remove a hack that inserted WIN32_LEAN_AND_MEAN into headers

This was supposedly to improve compile times, but it breaks our headers.
This commit is contained in:
Timo Kreuzer
2026-04-28 10:46:13 +03:00
parent fa433604cf
commit 4bf2a30395
4 changed files with 5 additions and 9 deletions

View File

@@ -3,6 +3,8 @@ include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl)
add_rpc_files(server ${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl/netlogon.idl)
spec2def(netlogon.dll netlogon.spec ADD_IMPORTLIB)
add_definitions(-DWIN32_LEAN_AND_MEAN=)
list(APPEND SOURCE
netlogon.c
rpcserver.c

View File

@@ -12,6 +12,8 @@ add_rpc_files(client
${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl/srvsvc.idl
${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl/wkssvc.idl)
add_definitions(-DWIN32_LEAN_AND_MEAN=)
list(APPEND SOURCE
apibuf.c
browser.c

View File

@@ -1,5 +1,5 @@
add_definitions(-DUSE_WINE_TODOS)
add_definitions(-DUSE_WINE_TODOS -DWIN32_LEAN_AND_MEAN=)
list(APPEND SOURCE
browse_ctx.c

View File

@@ -2095,15 +2095,7 @@ void write_header(const statement_list_t *stmts)
fprintf(header, "#ifdef _WIN32\n");
fprintf(header, "#ifndef __REQUIRED_RPCNDR_H_VERSION__\n");
fprintf(header, "#define __REQUIRED_RPCNDR_H_VERSION__ 475\n");
#ifdef __REACTOS__
fprintf(header, "#endif\n\n");
fprintf(header, "#ifdef __REACTOS__\n");
fprintf(header, "#define WIN32_LEAN_AND_MEAN\n");
fprintf(header, "#endif\n\n");
#else
fprintf(header, "#endif\n");
#endif
fprintf(header, "#include <rpc.h>\n" );
fprintf(header, "#include <rpcndr.h>\n" );
if (!for_each_serializable(stmts, NULL, serializable_exists))