fixing usleep unistd include

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/hilnius@13593 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hilnius 2013-08-29 17:59:56 +00:00
parent 71fb252654
commit 50db118a91

View File

@ -27,6 +27,7 @@
#else #else
# include <stdint.h> # include <stdint.h>
# include <sys/time.h> # include <sys/time.h>
# include <unistd.h>
#endif #endif
#include <string> #include <string>
@ -86,9 +87,9 @@ public:
{ {
return irr_driver->getDevice()->getTimer()->getRealTime()/1000.0; return irr_driver->getDevice()->getTimer()->getRealTime()/1000.0;
}; // getTimeSinceEpoch }; // getTimeSinceEpoch
// ------------------------------------------------------------------------ // ------------------------------------------------------------------------
/** /**
* \brief Compare two different times. * \brief Compare two different times.
* \return A signed integral indicating the relation between the time. * \return A signed integral indicating the relation between the time.
*/ */
@ -117,7 +118,7 @@ public:
#endif #endif
} // sleep } // sleep
// ------------------------------------------------------------------------ // ------------------------------------------------------------------------
/** /**
* \brief Add a interval to a time. * \brief Add a interval to a time.
*/ */
static TimeType addInterval(TimeType time, int year, int month, int day) { static TimeType addInterval(TimeType time, int year, int month, int day) {