Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #if defined(_WIN32)
- #define WDEF_ 1
- #define LDEF_ 0
- #include "windefs.h"
- #else if defined(__gnu_linux__) || defined(__linux__)
- #define LDEF_ 1
- #define WDEF_ 0
- #include <sys/uninstd.h>
- #endif
- #include <stdio.h>
- #include <stdint.h>
- #include <stdlib.h>
- #if WDEF_
- int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PWSTR pCmdLine, int nCmdShow) {
- return MessageBox(NULL, "Windows Application!", "Alert", MB_OK);
- }
- #else if LDEF_
- int main(int argc, char[]* argv) {
- printf("[Alert]: Linux Application!");
- return 0;
- #endif
- /*
- * THIS WILL NOT COMPILE
- *
- * true?
- */
Advertisement
Add Comment
Please, Sign In to add comment