[ros-diffs] [tkreuzer] 53326: [RTL] Hack around lds inability to detect used functions, when they are exported.

tkreuzer at svn.reactos.org tkreuzer at svn.reactos.org
Fri Aug 19 21:14:11 UTC 2011


Author: tkreuzer
Date: Fri Aug 19 21:14:11 2011
New Revision: 53326

URL: http://svn.reactos.org/svn/reactos?rev=53326&view=rev
Log:
[RTL]
Hack around lds inability to detect used functions, when they are exported.

Modified:
    trunk/reactos/lib/rtl/largeint.c

Modified: trunk/reactos/lib/rtl/largeint.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/lib/rtl/largeint.c?rev=53326&r1=53325&r2=53326&view=diff
==============================================================================
--- trunk/reactos/lib/rtl/largeint.c [iso-8859-1] (original)
+++ trunk/reactos/lib/rtl/largeint.c [iso-8859-1] Fri Aug 19 21:14:11 2011
@@ -14,10 +14,13 @@
 
 /* FUNCTIONS *****************************************************************/
 
-#undef RtlUlonglongByteSwap
-#undef RtlUlongByteSwap
+/* HACK: ld is too stupid to understand that we need the functions
+   when we export them, so we force it to be linked this way. */
+#ifdef __GNUC__
 #undef RtlUshortByteSwap
-
+USHORT FASTCALL RtlUshortByteSwap(USHORT Source);
+PVOID Dummy = RtlUshortByteSwap;
+#endif
 
 /*
  * @implemented




More information about the Ros-diffs mailing list