mirror of
https://github.com/reactos/reactos.git
synced 2026-06-01 08:50:24 +08:00
[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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
add_definitions(-DUSE_WINE_TODOS)
|
||||
add_definitions(-DUSE_WINE_TODOS -DWIN32_LEAN_AND_MEAN=)
|
||||
|
||||
list(APPEND SOURCE
|
||||
browse_ctx.c
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user