diff options
| author | rayhogenson <rayhogenson@gmail.com> | 2014-03-15 00:10:09 -0800 |
|---|---|---|
| committer | rayhogenson <rayhogenson@gmail.com> | 2014-03-15 00:10:09 -0800 |
| commit | 35643398483374ea573dc51d0e90e1b8e3727e48 (patch) | |
| tree | 912ca7f453067d0f19c5319eea52da10fc98d222 /src | |
| parent | 7e5ecb0d0325133eee3cd6e66ccf7fdb96c231d0 (diff) | |
| download | yetihack-35643398483374ea573dc51d0e90e1b8e3727e48.tar.zst | |
added cmake support
Diffstat (limited to 'src')
| -rw-r--r-- | src/YetiHack.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/YetiHack.cpp b/src/YetiHack.cpp index d178ea3..129d759 100644 --- a/src/YetiHack.cpp +++ b/src/YetiHack.cpp @@ -25,10 +25,10 @@ along with YetiHack. If not, see <http://www.gnu.org/licenses/>. #include <fstream> #include <sstream> #include <cmath> -#ifdef LINUX +#ifdef HAVE_UNISTD_H #include <unistd.h> #endif -#ifdef WINDOWS +#ifdef HAVE_WINDOWS_H #include <windows.h> #endif #include "yeti.h" @@ -48,10 +48,10 @@ void intro(); void osleep(int miliseconds) { - #ifdef WINDOWS + #ifdef HAVE_WINDOWS_H Sleep(miliseconds); #endif - #ifdef LINUX + #ifdef HAVE_UNISTD_H usleep(miliseconds * 1000); #endif } |
