/*************************************************************************** * include/stxxl/bits/msvc_compatibility.h * * Part of the STXXL. See http://stxxl.sourceforge.net * * Copyright (C) 2009, 2011 Andreas Beckmann <beckmann@cs.uni-frankfurt.de> * * Distributed under the Boost Software License, Version 1.0. * (See accompanying file LICENSE_1_0.txt or copy at * http://www.boost.org/LICENSE_1_0.txt) **************************************************************************/ #ifndef STXXL_MSVC_COMPATIBILITY_H #define STXXL_MSVC_COMPATIBILITY_H #ifdef STXXL_BOOST_CONFIG #include <boost/config.hpp> #endif #ifdef BOOST_MSVC #include <cmath> inline double log2(double x) { return (log(x) / log(2.)); } // http://msdn.microsoft.com/en-us/library/2ts7cx93.aspx #define snprintf _snprintf // http://msdn.microsoft.com/en-us/library/h80404d3.aspx #define strtoll _strtoi64 // http://msdn.microsoft.com/en-us/library/85zk715d.aspx #define strtoull _strtoui64 #endif #endif // !STXXL_MSVC_COMPATIBILITY_H // vim: et:ts=4:sw=4