diff options
author | Gluzskiy Alexandr <sss123next@list.ru> | 2010-10-15 17:57:41 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss123next@list.ru> | 2010-10-15 17:57:41 +0300 |
commit | a5b11748c6b322a245b2d2352979bf199aa31afd (patch) | |
tree | 09ef35f80ff45a27d57a6edab33d97f96800bc84 | |
parent | 14fe324cb1dbb37996c957df3c942c3cdf66d3cf (diff) |
new file: core/compatibility.cpp
new file: core/compatibility.h
-rw-r--r-- | core/compatibility.cpp | 10 | ||||
-rw-r--r-- | core/compatibility.h | 8 |
2 files changed, 18 insertions, 0 deletions
diff --git a/core/compatibility.cpp b/core/compatibility.cpp new file mode 100644 index 0000000..35681b1 --- /dev/null +++ b/core/compatibility.cpp @@ -0,0 +1,10 @@ + +#ifdef _WIN32 +#include <windows.h> + +void sleep(int i) +{ + Sleep(i*1000); +} + +#endif diff --git a/core/compatibility.h b/core/compatibility.h new file mode 100644 index 0000000..a339d40 --- /dev/null +++ b/core/compatibility.h @@ -0,0 +1,8 @@ +#ifndef COMPATIBILITY_H_INCLUDED
+#define COMPATIBILITY_H_INCLUDED
+
+#ifdef _WIN32 +void sleep(int i); +#endif
+
+#endif // COMPATIBILITY_H_INCLUDED
|