]> 4ch.mooo.com Git - 16.git/blobdiff - 16/exmmtest/src/lib/16_hc.c
They now behave the same!! ^^ but there is a problem!! ><
[16.git] / 16 / exmmtest / src / lib / 16_hc.c
index df9602d8542e10e39bab97ff7146978caf0c7756..005244479b016aae5116a522307bc135253213d2 100644 (file)
 */
 
 #include "src/lib/16_hc.h"
+#pragma hdrstop
+
+#pragma warn -pro
+#pragma warn -use
 
 int heaphandle;
 
+#ifdef __BORLANDC__
+void * LargestFreeBlock(size_t* Size)
+#endif
+#ifdef __WATCOMC__
 void __near* LargestFreeBlock(size_t* Size)
+#endif
 {
        size_t s0, s1;
+#ifdef __BORLANDC__
+       void * p;
+#endif
+#ifdef __WATCOMC__
        void __near* p;
+#endif
 
        s0 = ~(size_t)0 ^ (~(size_t)0 >> 1);
 #ifdef __BORLANDC__
@@ -89,7 +103,7 @@ size_t _coreleft(void)
        for(;;)
        {
                size_t largest;
-               void __near* p = LargestFreeBlock(&largest);
+               void __near* p = (void __near *)LargestFreeBlock(&largest);
                if (largest < sizeof(void __near*))
                {
                        if (p != NULL)