Line data Source code
1 1 : /** 2 : * @file commonTypes.h 3 : * 4 : * @brief Provides cross-platform type definitions 5 : */ 6 : 7 : #ifndef COMMON_TYPES_H 8 : #define COMMON_TYPES_H 9 : 10 : #include <stdexcept> // Include for standard exception classes 11 : 12 : #if defined(_WIN32) 13 : #include <cstddef> 14 : #include <cstdint> ///< Include for standard integer types on Windows 15 : #include <inttypes.h> ///< Include for integer format macros on Windows 16 : #elif defined(__linux__) 17 : #include <cstddef> 18 : #include <cstdint> 19 : #include <stdint.h> ///< Include for standard integer types on Linux 20 : #include <inttypes.h> ///< Include for integer format macros on Linux 21 : #elif defined(__APPLE__) 22 : #include <cstddef> 23 : #include <cstdint> 24 : #include <stdint.h> ///< Include for standard integer types on Apple platforms 25 : #include <inttypes.h> ///< Include for integer format macros on Apple platforms 26 : #endif 27 : 28 : #endif // COMMON_TYPES_H