src/stdlib/SDL_stdlib.c
author Sam Lantinga
Tue, 07 Feb 2006 18:36:54 +0000
changeset 1345 7f32b9bede06
parent 1331 1cbaeee565b1
child 1346 1b5fbaf1d2c6
permissions -rw-r--r--
Fixes for Visual C++ 6.0
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@1345
    34
long _ftol()
slouken@1345
    35
{
slouken@1345
    36
	return 0;
slouken@1345
    37
}
slouken@1330
    38
long _ftol2_sse()
slouken@1330
    39
{
slouken@1330
    40
	return 0;
slouken@1330
    41
}
slouken@1330
    42
slouken@1330
    43
/* 64-bit math operators (FIXME!) */
slouken@1330
    44
void _allmul()
slouken@1330
    45
{
slouken@1330
    46
}
slouken@1330
    47
void _alldiv()
slouken@1330
    48
{
slouken@1330
    49
}
slouken@1330
    50
void _aulldiv()
slouken@1330
    51
{
slouken@1330
    52
}
slouken@1330
    53
void _allrem()
slouken@1330
    54
{
slouken@1330
    55
}
slouken@1330
    56
void _aullrem()
slouken@1330
    57
{
slouken@1330
    58
}
slouken@1330
    59
void _alldvrm()
slouken@1330
    60
{
slouken@1330
    61
}
slouken@1330
    62
void _aulldvrm()
slouken@1330
    63
{
slouken@1330
    64
}
slouken@1330
    65
void _allshl()
slouken@1330
    66
{
slouken@1330
    67
}
slouken@1330
    68
void _aullshr()
slouken@1330
    69
{
slouken@1330
    70
}
slouken@1330
    71
slouken@1330
    72
#endif /* MSC_VER */
slouken@1330
    73
slouken@1331
    74
#endif /* !HAVE_LIBC */