Mercurial > sdl-ios-xcode
comparison include/SDL_stdinc.h @ 4870:d275c95ddc05
Added atan2 implementation from uClibc
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 29 Aug 2010 16:05:34 -0700 |
parents | 518d1679d2d0 |
children | 67ad1c88dda0 |
comparison
equal
deleted
inserted
replaced
4869:2b1bcf74e4c4 | 4870:d275c95ddc05 |
---|---|
692 | 692 |
693 #ifndef HAVE_M_PI | 693 #ifndef HAVE_M_PI |
694 #define M_PI 3.14159265358979323846264338327950288 /* pi */ | 694 #define M_PI 3.14159265358979323846264338327950288 /* pi */ |
695 #endif | 695 #endif |
696 | 696 |
697 #ifdef HAVE_ATAN2 | |
698 #define SDL_atan2 atan2 | |
699 #else | |
700 extern DECLSPEC double SDLCALL SDL_atan2(double y, double x); | |
701 #endif | |
702 | |
697 #ifdef HAVE_CEIL | 703 #ifdef HAVE_CEIL |
698 #define SDL_ceil ceil | 704 #define SDL_ceil ceil |
699 #else | 705 #else |
700 #define SDL_ceil(x) ((double)(int)((x)+0.5)) | 706 #define SDL_ceil(x) ((double)(int)((x)+0.5)) |
701 #endif | 707 #endif |