commit 1aac51ba909c624ad2296f7ca10435c579c66c5f parent a9b26739745ebe540b9f7fc1fbe4c3276a005abe Author: MTRNord <mtrnord1@gmail.com> Date: Fri, 22 Sep 2017 14:24:36 +0200 Add missing include for linux Signed-off-by: MTRNord <mtrnord1@gmail.com> Diffstat:
| M | main.cpp | | | 9 | +++++---- |
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/main.cpp b/main.cpp @@ -1,3 +1,6 @@ +#ifdef linux + #include <unistd.h> +#endif #include <iostream> using namespace std; @@ -10,10 +13,8 @@ int main() { } else { /* Anything goes. */ } - #endif - - #ifdef _WIN32 - printf("You currently have to use Linux to run this. Windows support might eventually come in the future. :)\n"); + #else + printf("You currently have to use Linux to run this. Other System support might eventually come in the future. :)\n"); #endif return 0;