* FreeBSD fixes/updates from Andreas Kohn
This commit is contained in:
parent
6ceb4a64e4
commit
4bc5c29115
8 changed files with 81 additions and 28 deletions
|
@ -24,7 +24,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
#include "../game/q_shared.h"
|
||||
#include "qcommon.h"
|
||||
#include <setjmp.h>
|
||||
#if defined __linux__ || defined MACOS_X
|
||||
#if defined __linux__ || defined MACOS_X || defined __FreeBSD__
|
||||
#include <netinet/in.h>
|
||||
#else
|
||||
#include <winsock.h>
|
||||
|
|
|
@ -1002,7 +1002,7 @@ void VM_Compile( vm_t *vm, vmHeader_t *header ) {
|
|||
case OP_CVFI:
|
||||
#ifndef FTOL_PTR // WHENHELLISFROZENOVER // bk001213 - was used in 1.17
|
||||
// not IEEE complient, but simple and fast
|
||||
EmitString( "D9 07" ); // fld dword ptr [edi]
|
||||
EmitString( "D9 07" ); // fld dword ptr [edi]
|
||||
EmitString( "DB 1F" ); // fistp dword ptr [edi]
|
||||
#else // FTOL_PTR
|
||||
// call the library conversion function
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue