There was an error while loading. Please reload this page.
1 parent 2e91948 commit e7514aeCopy full SHA for e7514ae
1 file changed
src/Processing.h
@@ -1292,6 +1292,16 @@ static constexpr int OTHER = 0;
1292
static constexpr int WINDOWS = 1;
1293
static constexpr int MACOS = 2;
1294
static constexpr int LINUX = 3;
1295
+// Current platform
1296
+#if defined(_WIN32)
1297
+static constexpr int platform = WINDOWS;
1298
+#elif defined(__APPLE__)
1299
+static constexpr int platform = MACOS;
1300
+#elif defined(__linux__)
1301
+static constexpr int platform = LINUX;
1302
+#else
1303
+static constexpr int platform = OTHER;
1304
+#endif
1305
// Orientation constants (Android/mobile)
1306
static constexpr int PORTRAIT = 1;
1307
static constexpr int LANDSCAPE = 2;
0 commit comments