Skip to content

Instantly share code, notes, and snippets.

@maidis
Created April 24, 2019 16:31
Show Gist options
  • Save maidis/f570befa35cca01285aac5c45673408c to your computer and use it in GitHub Desktop.
Save maidis/f570befa35cca01285aac5c45673408c to your computer and use it in GitHub Desktop.
Koşullu Derleme
#include <iostream>
int main()
{
#ifdef __linux__
std::cout << "Linux'tan merhaba\n";
#endif
#ifdef _WIN32
std::cout << "Windows'tan merhaba\n";
#endif
#ifdef __APPLE__
std::cout << "macOS'tan merhaba\n";
#endif
#ifdef __HAIKU__
std::cout << "Haiku'dan merhaba\n";
#endif
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment