Linux: Add library 3.3.3 for Linux64.

Esse commit está contido em:
Dinh Duong Ha
2016-05-31 17:01:27 +07:00
commit 171f4ada73
5 arquivos alterados com 30 adições e 13 exclusões
+1 -1
Ver Arquivo
@@ -1 +1 @@
libedk.so.3.3.2
libedk.so.3.3.3
Arquivo executável
BIN
Ver Arquivo
Arquivo binário não exibido.
+24 -6
Ver Arquivo
@@ -12,6 +12,8 @@
#include <map>
#include <cstdlib>
#include <stdexcept>
#include <thread>
#include <chrono>
#ifdef _WIN32
#include <conio.h>
@@ -123,12 +125,7 @@ int main()
delete[] data;
}
#ifdef _WIN32
Sleep(1);
#endif
#ifdef __linux__
sleep(1);
#endif
std::this_thread::sleep_for(std::chrono::milliseconds(500));
}
}
@@ -146,3 +143,24 @@ int main()
return 0;
}
#ifdef __linux__
int _kbhit(void)
{
struct timeval tv;
fd_set read_fd;
tv.tv_sec=0;
tv.tv_usec=0;
FD_ZERO(&read_fd);
FD_SET(0,&read_fd);
if(select(1, &read_fd,NULL, NULL, &tv) == -1)
return 0;
if(FD_ISSET(0,&read_fd))
return 1;
return 0;
}
#endif
@@ -11,6 +11,8 @@
#include <sstream>
#include <map>
#include <stdexcept>
#include <thread>
#include <chrono>
#ifdef _WIN32
#include <windows.h>
@@ -13,6 +13,8 @@
#include <map>
#include <cstdlib>
#include <stdexcept>
#include <thread>
#include <chrono>
#ifdef _WIN32
#include <conio.h>
@@ -178,12 +180,7 @@ int main(int argc, char** argv) {
}
#ifdef _WIN32
Sleep(1);
#endif
#ifdef __linux__
sleep(1);
#endif
std::this_thread::sleep_for(std::chrono::milliseconds(500));
}
ofs.close();