X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FWinDefs.h;h=cbee4eafe73d07c44726226b8c689843061aa9dc;hb=cd043e3f9e26c2b3406b40a354c2840941e9db7f;hp=31dd352d12598aa1fc7239c0668fb692001ec6bb;hpb=25e3d5e35a7fd7efdffc420efe3c41a91cefe43f;p=lugaru.git diff --git a/Source/WinDefs.h b/Source/WinDefs.h index 31dd352..cbee4ea 100644 --- a/Source/WinDefs.h +++ b/Source/WinDefs.h @@ -3,20 +3,18 @@ Copyright (C) 2003, 2010 - Wolfire Games This file is part of Lugaru. -Lugaru is free software; you can redistribute it and/or -modify it under the terms of the GNU General Public License -as published by the Free Software Foundation; either version 2 -of the License, or (at your option) any later version. +Lugaru is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2 of the License, or +(at your option) any later version. -This program is distributed in the hope that it will be useful, +Lugaru is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - -See the GNU General Public License for more details. +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. You should have received a copy of the GNU General Public License -along with this program; if not, write to the Free Software -Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +along with Lugaru. If not, see . */ #ifndef _WINDEFS_H_ @@ -89,8 +87,6 @@ inline bool isnormal( double x) } */ -typedef unsigned int uintptr_t; - // fix file names to use '/' instead of ':' char* ConvertFileName( const char* orgfilename); @@ -99,6 +95,7 @@ char* ConvertFileName( const char* orgfilename, const char* junk); #define fopen(a, b) fopen(ConvertFileName(a), b); +#ifndef __MINGW32__ inline float abs(float f) { if (f < 0) @@ -112,6 +109,7 @@ inline double abs(double f) return -f; return f; } +#endif // __MINGW32__ #endif