src/stdlib/SDL_stdlib.c
author Sam Lantinga <slouken@libsdl.org>
Mon, 06 Feb 2006 08:46:14 +0000
changeset 1331 1cbaeee565b1
parent 1330 450721ad5436
child 1345 7f32b9bede06
permissions -rw-r--r--
A few fixes to get this building on Linux again
slouken@1330
     1
/*
slouken@1330
     2
    SDL - Simple DirectMedia Layer
slouken@1330
     3
    Copyright (C) 1997-2006 Sam Lantinga
slouken@1330
     4
slouken@1330
     5
    This library is free software; you can redistribute it and/or
slouken@1330
     6
    modify it under the terms of the GNU Lesser General Public
slouken@1330
     7
    License as published by the Free Software Foundation; either
slouken@1330
     8
    version 2.1 of the License, or (at your option) any later version.
slouken@1330
     9
slouken@1330
    10
    This library is distributed in the hope that it will be useful,
slouken@1330
    11
    but WITHOUT ANY WARRANTY; without even the implied warranty of
slouken@1330
    12
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
slouken@1330
    13
    Lesser General Public License for more details.
slouken@1330
    14
slouken@1330
    15
    You should have received a copy of the GNU Lesser General Public
slouken@1330
    16
    License along with this library; if not, write to the Free Software
slouken@1330
    17
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
slouken@1330
    18
slouken@1330
    19
    Sam Lantinga
slouken@1330
    20
    slouken@libsdl.org
slouken@1330
    21
*/
slouken@1330
    22
slouken@1330
    23
slouken@1330
    24
/* This file contains portable stdlib functions for SDL */
slouken@1330
    25
slouken@1330
    26
#include "SDL_stdlib.h"
slouken@1330
    27
slouken@1330
    28
#ifndef HAVE_LIBC
slouken@1330
    29
/* These are some C runtime intrinsics that need to be defined */
slouken@1330
    30
slouken@1330
    31
#if defined(_MSC_VER)
slouken@1330
    32
slouken@1330
    33
/* Float to long (FIXME!) */
slouken@1330
    34
long _ftol2_sse()
slouken@1330
    35
{
slouken@1330
    36
	return 0;
slouken@1330
    37
}
slouken@1330
    38
slouken@1330
    39
/* 64-bit math operators (FIXME!) */
slouken@1330
    40
void _allmul()
slouken@1330
    41
{
slouken@1330
    42
}
slouken@1330
    43
void _alldiv()
slouken@1330
    44
{
slouken@1330
    45
}
slouken@1330
    46
void _aulldiv()
slouken@1330
    47
{
slouken@1330
    48
}
slouken@1330
    49
void _allrem()
slouken@1330
    50
{
slouken@1330
    51
}
slouken@1330
    52
void _aullrem()
slouken@1330
    53
{
slouken@1330
    54
}
slouken@1330
    55
void _alldvrm()
slouken@1330
    56
{
slouken@1330
    57
}
slouken@1330
    58
void _aulldvrm()
slouken@1330
    59
{
slouken@1330
    60
}
slouken@1330
    61
void _allshl()
slouken@1330
    62
{
slouken@1330
    63
}
slouken@1330
    64
void _aullshr()
slouken@1330
    65
{
slouken@1330
    66
}
slouken@1330
    67
slouken@1330
    68
#endif /* MSC_VER */
slouken@1330
    69
slouken@1331
    70
#endif /* !HAVE_LIBC */