#ifndef PLATFORM_COMPAT_H #define PLATFORM_COMPAT_H #include // TODO: This is compatibility cross-platform layer. Designed to have minimal // impact on the codebase. Remove once it's no longer needed. // A naive cross-platform MAX_PATH/PATH_MAX/MAX_PATH drop-in replacement. // // TODO: Remove when we migrate to use std::filesystem::path or std::string to // represent paths across the codebase. #define COMPAT_MAX_PATH 260 int compat_stricmp(const char* string1, const char* string2); int compat_strnicmp(const char* string1, const char* string2, size_t size); char* compat_strupr(char* string); char* compat_strlwr(char* string); char* compat_itoa(int value, char* buffer, int radix); #endif /* PLATFORM_COMPAT_H */