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=533…
==============================================================================
--- 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