From 6f518f0b06f69c3b4b4c9ee668a3e5f86d6391a3 Mon Sep 17 00:00:00 2001 From: David Capello <davidcapello@gmail.com> Date: Fri, 22 Sep 2017 12:53:50 -0300 Subject: [PATCH] Add "Detect Platform" section in src/README --- src/README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/README.md b/src/README.md index 013f731c1..29fa93b7e 100644 --- a/src/README.md +++ b/src/README.md @@ -67,3 +67,19 @@ following extra commands available: test the anticrash feature or your need a memory dump file. * `Ctrl+Alt+Shift+R`: recover the active document from the data recovery store. + +# Detect Platform + +You can check the platform using the following checks: + + #ifdef _WIN32 + #ifdef _WIN64 + // Windows x64 + #else + // Windows x86 + #endif + #elif defined(__APPLE__) + // macOS + #else + // Linux + #endif