#ifndef PLATFORM_H
#define PLATFORM_H
-/* ========================================================================= */
-/* define main platform keywords */
-/* ========================================================================= */
+// ============================================================================
+// define main platform keywords
+// ============================================================================
#if defined(WIN32) || defined(_WIN32)
#define PLATFORM_WIN32
#endif
-/* ========================================================================= */
-/* define additional platform keywords */
-/* ========================================================================= */
+// ============================================================================
+// define additional platform keywords
+// ============================================================================
#if defined(_AIX)
#define PLATFORM_AIX
#endif
-/* ========================================================================= */
-/* define additional target keywords */
-/* ========================================================================= */
+// ============================================================================
+// define additional platform keywords for CPU architecture
+// ============================================================================
+
+#if defined(__x86_64__) || defined(__LP64__) || defined(_LP64)
+#define PLATFORM_64_BIT
+#define PLATFORM_XX_BIT_STRING "64-bit"
+#else
+#define PLATFORM_32_BIT
+#define PLATFORM_XX_BIT_STRING "32-bit"
+#endif
+
+
+// ============================================================================
+// define additional target keywords
+// ============================================================================
#if defined(TARGET_SDL2)
#ifndef TARGET_SDL
#endif
-#endif /* PLATFORM_H */
+#endif // PLATFORM_H