Author: sserapion
Date: Fri Jul 25 07:22:27 2008
New Revision: 34773
URL:
http://svn.reactos.org/svn/reactos?rev=34773&view=rev
Log:
Fix a 64bit portability issue.
Hack widl a bit in order to compile more code.
Modified:
branches/ros-amd64-bringup/reactos/tools/widl/client.c
branches/ros-amd64-bringup/reactos/tools/widl/typegen.c
Modified: branches/ros-amd64-bringup/reactos/tools/widl/client.c
URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/tools…
==============================================================================
--- branches/ros-amd64-bringup/reactos/tools/widl/client.c [iso-8859-1] (original)
+++ branches/ros-amd64-bringup/reactos/tools/widl/client.c [iso-8859-1] Fri Jul 25
07:22:27 2008
@@ -437,7 +437,7 @@
write_function_stubs(iface->iface, &proc_offset);
print_client("#if !defined(__RPC_WIN32__)\n");
- print_client("#error Invalid build platform for this stub.\n");
+ print_client("//#error Invalid build platform for this stub.\n");
print_client("#endif\n");
fprintf(client, "\n");
Modified: branches/ros-amd64-bringup/reactos/tools/widl/typegen.c
URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/tools…
==============================================================================
--- branches/ros-amd64-bringup/reactos/tools/widl/typegen.c [iso-8859-1] (original)
+++ branches/ros-amd64-bringup/reactos/tools/widl/typegen.c [iso-8859-1] Fri Jul 25
07:22:27 2008
@@ -2667,8 +2667,8 @@
}
if (phase == PHASE_MARSHAL)
- print_file(file, indent, "MIDL_memset(_StubMsg.Buffer, 0, (0x%x -
(long)_StubMsg.Buffer) & 0x%x);\n", alignment, alignment - 1);
- print_file(file, indent, "_StubMsg.Buffer = (unsigned char
*)(((long)_StubMsg.Buffer + %u) & ~0x%x);\n",
+ print_file(file, indent, "MIDL_memset(_StubMsg.Buffer, 0, (0x%x -
(size_t)_StubMsg.Buffer) & 0x%x);\n", alignment, alignment - 1);
+ print_file(file, indent, "_StubMsg.Buffer = (unsigned char
*)(((size_t)_StubMsg.Buffer + %u) & ~0x%x);\n",
alignment - 1, alignment - 1);
if (phase == PHASE_MARSHAL)