/*************************************************************************** global.h - description ------------------- begin : Fri Nov 22 2002 copyright : (C) 2002 by Tim-Philipp Müller email : t.i.m@orange.net ***************************************************************************/ /*************************************************************************** * * * This program 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. * * * ***************************************************************************/ #ifndef _ed2k_hash_global_h_included_ #define _ed2k_hash_global_h_included_ #if (!defined(__MAC_OS_X__)) #if defined(__APPLE__) && defined(__GNUC__) # define __MAC_OS_X__ #elif defined(__MACOSX__) # define __MAC_OS_X__ #endif #endif /* (!defined(__MAC_OS_X__)) */ /* include extra WIN32 stuff if required * * NOTE: ALL WIN32 STUFF IS NOT TESTED, I JUST WROTE IT HERE AS I THINK MIGHT BE RIGHT * */ #ifdef __WIN32__ /* detect Borland c++ Definition and add MS Visual c++ one (???) */ #ifndef WIN32 #define WIN32 #endif #endif #ifdef WIN32 // # define STRICT /* XXX - Strict typing, please (do we want this?) */ # include # include # include # include # ifdef _MSC_VER # include # endif /* _MSC_VER */ #ifndef alloca #include #include #define alloca _alloca #endif #ifndef strdup #include #define strdup _strdup #endif #endif /* ifdef WIN32 */ #endif