In subdirectory common:

   In MATHLIB.H:

      CHANGE (starting at line 77):

         #ifdef _WIN32
         void __inline set_fpu_cw(void)
         {
            _asm
               {  wait
                  fnstcw   old_cw
                  wait
                  mov      ax, word ptr old_cw
                  or       ah, 0xc
                  mov      word ptr new_cw,ax
                  fldcw    new_cw
               }
         }

         int __inline quick_ftol(float f)
         {
            _asm {
               // Assumes that we are already in chop mode, and only need a 32-bit int
               fld   DWORD PTR f
               fistp DWORD PTR dlong
            }
            return dlong.i[0];
         }

         void __inline restore_fpu_cw(void)
         {
            _asm  fldcw old_cw
         }
         #else
         #define set_fpu_cw() /* */
         #define quick_ftol(f) ftol(f)
         #define restore_fpu_cw() /* */
         #endif

      TO:

         #define set_fpu_cw() /* */
         #define quick_ftol(f) ftol(f)
         #define restore_fpu_cw() /* */


In subdirectory dlls:

   In cbase.h:

      CHANGE (at line 55):

         #define EXPORT _declspec( dllexport )

      TO:

         #define EXPORT __declspec( dllexport )


      CHANGE (at line 240):

         void EXPORT SUB_CallUseToggle( void ) { this->Use( this, this, USE_TOGGLE, 0 ); }

      TO:

         void EXPORT SUB_CallUseToggle( void );


   In cbase.cpp:

      ADD (at the end of the file):

         void EXPORT CBaseEntity::SUB_CallUseToggle( void )
         {
            this->Use( this, this, USE_TOGGLE, 0 );
         }


   In extdll.h:

      CHANGE (starting at line 42):

         #include "WINDOWS.H"
 
         // Misc C-runtime library headers
         #include "STDIO.H"
         #include "STDLIB.H"
         #include "MATH.H"

      TO:

         #include <windows.h>
 
         // Misc C-runtime library headers
         #include <stdio.h>
         #include <stdlib.h>
         #include <math.h>


